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§
source§impl<H: Ord, T: ?Sized + Ord> Ord for HeaderSlice<HeaderWithLength<H>, T>
impl<H: Ord, T: ?Sized + Ord> Ord for HeaderSlice<HeaderWithLength<H>, T>
source§impl<H: PartialOrd, T: PartialOrd + ?Sized> PartialOrd for HeaderSlice<H, T>
impl<H: PartialOrd, T: PartialOrd + ?Sized> PartialOrd for HeaderSlice<H, T>
source§impl<H: PartialOrd, T: ?Sized + PartialOrd> PartialOrd for HeaderSlice<HeaderWithLength<H>, T>
impl<H: PartialOrd, T: ?Sized + PartialOrd> PartialOrd for HeaderSlice<HeaderWithLength<H>, T>
impl<H: Eq, T: Eq + ?Sized> Eq for HeaderSlice<H, T>
impl<H, T: ?Sized> StructuralPartialEq for HeaderSlice<H, T>
Auto Trait Implementations§
impl<H, T> Freeze for HeaderSlice<H, T>
impl<H, T> RefUnwindSafe for HeaderSlice<H, T>
impl<H, T> Send for HeaderSlice<H, T>
impl<H, T> Sync for HeaderSlice<H, T>
impl<H, T> Unpin for HeaderSlice<H, T>
impl<H, T> UnwindSafe for HeaderSlice<H, T>
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