[][src]Struct triomphe::HeaderWithLength

#[repr(C)]pub struct HeaderWithLength<H> {
    pub header: H,
    // some fields omitted
}

Header data with an inline length. Consumers that use HeaderWithLength as the Header type in HeaderSlice can take advantage of ThinArc.

Fields

header: H

The fixed-sized data.

Implementations

impl<H> HeaderWithLength<H>[src]

pub fn new(header: H, length: usize) -> Self[src]

Creates a new HeaderWithLength.

Trait Implementations

impl<H: Debug> Debug for HeaderWithLength<H>[src]

impl<H: Eq> Eq for HeaderWithLength<H>[src]

impl<H: Hash> Hash for HeaderWithLength<H>[src]

impl<H: PartialEq> PartialEq<HeaderWithLength<H>> for HeaderWithLength<H>[src]

impl<H: PartialOrd> PartialOrd<HeaderWithLength<H>> for HeaderWithLength<H>[src]

impl<H> StructuralEq for HeaderWithLength<H>[src]

impl<H> StructuralPartialEq for HeaderWithLength<H>[src]

Auto Trait Implementations

impl<H> RefUnwindSafe for HeaderWithLength<H> where
    H: RefUnwindSafe
[src]

impl<H> Send for HeaderWithLength<H> where
    H: Send
[src]

impl<H> Sync for HeaderWithLength<H> where
    H: Sync
[src]

impl<H> Unpin for HeaderWithLength<H> where
    H: Unpin
[src]

impl<H> UnwindSafe for HeaderWithLength<H> where
    H: UnwindSafe
[src]

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.