[][src]Struct swim_mem::resident::BufHeader

pub struct BufHeader<M = ()> {
    pub len: usize,
    pub cap: usize,
    pub meta: M,
}

The Meta structure associated with every Lease in which a Buf resides.

Fields

len: usize

Number of elements contained in the Buf.

cap: usize

Number of slots allocated in the Lease.

meta: M

User-provided metadata.

Trait Implementations

impl<M: TryClone> TryClone for BufHeader<M>[src]

impl<M: Copy> Copy for BufHeader<M>[src]

impl<M: Clone> Clone for BufHeader<M>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<M> Send for BufHeader<M> where
    M: Send

impl<M> Sync for BufHeader<M> where
    M: Sync

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]