#[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§
Trait Implementations§
source§impl<H: Debug> Debug for HeaderWithLength<H>
impl<H: Debug> Debug for HeaderWithLength<H>
source§impl<H: Hash> Hash for HeaderWithLength<H>
impl<H: Hash> Hash for HeaderWithLength<H>
source§impl<H: PartialEq> PartialEq for HeaderWithLength<H>
impl<H: PartialEq> PartialEq for HeaderWithLength<H>
impl<H: Eq> Eq for HeaderWithLength<H>
impl<H> StructuralPartialEq for HeaderWithLength<H>
Auto Trait Implementations§
impl<H> Freeze for HeaderWithLength<H>where
H: Freeze,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more