pub trait Sizable {
    type Size: Unsigned + FromPrimitive + Sum + Ord;

    // Required method
    fn size(&self) -> Self::Size;
}
Expand description

Tratis representing collections which have a measurable size in number of bytes.

Required Associated Types§

source

type Size: Unsigned + FromPrimitive + Sum + Ord

Type to represent the size of this collection in number of bytes.

Required Methods§

source

fn size(&self) -> Self::Size

Returns the size of this collection in butes.

Implementors§

source§

impl Sizable for BufferedStorage

§

type Size = u64

source§

impl Sizable for DmaStorage

§

type Size = u64

source§

impl Sizable for InMemStorage

§

type Size = usize

source§

impl Sizable for StdRandomReadFileStorage

§

type Size = u64

source§

impl Sizable for StdSeekReadFileStorage

§

type Size = u64

source§

impl<S, M, H, Idx, SERP> Sizable for Segment<S, M, H, Idx, S::Size, SERP>where S: Storage,

§

type Size = <S as Sizable>::Size

source§

impl<S, M, H, Idx, SERP, SSP, C> Sizable for SegmentedLog<S, M, H, Idx, S::Size, SERP, SSP, C>where S: Storage,

§

type Size = <S as Sizable>::Size

source§

impl<S: Storage, H> Sizable for Store<S, H>

§

type Size = <S as Sizable>::Size

source§

impl<S: Storage, Idx> Sizable for Index<S, Idx>

§

type Size = <S as Sizable>::Size