Struct triomphe::HeaderWithLength
source · [−]#[repr(C)]pub struct HeaderWithLength<H> {
pub header: H,
pub length: usize,
}
Expand description
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.
length: usize
The slice length.
Implementations
sourceimpl<H> HeaderWithLength<H>
impl<H> HeaderWithLength<H>
Trait Implementations
sourceimpl<H: Debug> Debug for HeaderWithLength<H>
impl<H: Debug> Debug for HeaderWithLength<H>
sourceimpl<H: Hash> Hash for HeaderWithLength<H>
impl<H: Hash> Hash for HeaderWithLength<H>
sourceimpl<H: PartialEq> PartialEq<HeaderWithLength<H>> for HeaderWithLength<H>
impl<H: PartialEq> PartialEq<HeaderWithLength<H>> for HeaderWithLength<H>
sourcefn eq(&self, other: &HeaderWithLength<H>) -> bool
fn eq(&self, other: &HeaderWithLength<H>) -> bool
sourceimpl<H: PartialOrd> PartialOrd<HeaderWithLength<H>> for HeaderWithLength<H>
impl<H: PartialOrd> PartialOrd<HeaderWithLength<H>> for HeaderWithLength<H>
sourcefn partial_cmp(&self, other: &HeaderWithLength<H>) -> Option<Ordering>
fn partial_cmp(&self, other: &HeaderWithLength<H>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<H: Eq> Eq for HeaderWithLength<H>
impl<H> StructuralEq for HeaderWithLength<H>
impl<H> StructuralPartialEq for HeaderWithLength<H>
Auto Trait Implementations
impl<H> RefUnwindSafe for HeaderWithLength<H>where
H: RefUnwindSafe,
impl<H> Send for HeaderWithLength<H>where
H: Send,
impl<H> Sync for HeaderWithLength<H>where
H: Sync,
impl<H> Unpin for HeaderWithLength<H>where
H: Unpin,
impl<H> UnwindSafe for HeaderWithLength<H>where
H: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more