#[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: Clone> Clone for HeaderWithLength<H>
impl<H: Clone> Clone for HeaderWithLength<H>
source§fn clone(&self) -> HeaderWithLength<H>
fn clone(&self) -> HeaderWithLength<H>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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: Copy> Copy 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)