Struct triomphe::HeaderSlice
source · [−]#[repr(C)]pub struct HeaderSlice<H, T: ?Sized> {
pub header: H,
pub slice: T,
}
Expand description
Structure to allow Arc-managing some fixed-sized data and a variably-sized slice in a single allocation.
Fields
header: H
The fixed-sized data.
slice: T
The dynamically-sized data.
Trait Implementations
sourceimpl<H: PartialEq, T: PartialEq + ?Sized> PartialEq<HeaderSlice<H, T>> for HeaderSlice<H, T>
impl<H: PartialEq, T: PartialEq + ?Sized> PartialEq<HeaderSlice<H, T>> for HeaderSlice<H, T>
sourcefn eq(&self, other: &HeaderSlice<H, T>) -> bool
fn eq(&self, other: &HeaderSlice<H, T>) -> bool
sourceimpl<H: PartialOrd, T: PartialOrd + ?Sized> PartialOrd<HeaderSlice<H, T>> for HeaderSlice<H, T>
impl<H: PartialOrd, T: PartialOrd + ?Sized> PartialOrd<HeaderSlice<H, T>> for HeaderSlice<H, T>
sourcefn partial_cmp(&self, other: &HeaderSlice<H, T>) -> Option<Ordering>
fn partial_cmp(&self, other: &HeaderSlice<H, T>) -> 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, T: Eq + ?Sized> Eq for HeaderSlice<H, T>
impl<H, T: ?Sized> StructuralEq for HeaderSlice<H, T>
impl<H, T: ?Sized> StructuralPartialEq for HeaderSlice<H, T>
Auto Trait Implementations
impl<H, T: ?Sized> RefUnwindSafe for HeaderSlice<H, T>where
H: RefUnwindSafe,
T: RefUnwindSafe,
impl<H, T: ?Sized> Send for HeaderSlice<H, T>where
H: Send,
T: Send,
impl<H, T: ?Sized> Sync for HeaderSlice<H, T>where
H: Sync,
T: Sync,
impl<H, T: ?Sized> Unpin for HeaderSlice<H, T>where
H: Unpin,
T: Unpin,
impl<H, T: ?Sized> UnwindSafe for HeaderSlice<H, T>where
H: UnwindSafe,
T: 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