#[repr(C)]pub struct HeaderSlice<T, U: ?Sized> {
pub head: T,
pub tail: U,
}
Expand description
A type that represents a fixed-sized header followed by a variable-sized tail.
Fields§
§head: T
The fixed-sized header.
tail: U
The variable-sized tail.
Trait Implementations§
Auto Trait Implementations§
impl<T, U> Freeze for HeaderSlice<T, U>
impl<T, U> RefUnwindSafe for HeaderSlice<T, U>
impl<T, U> Send for HeaderSlice<T, U>
impl<T, U> Sync for HeaderSlice<T, U>
impl<T, U> Unpin for HeaderSlice<T, U>
impl<T, U> UnwindSafe for HeaderSlice<T, U>
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