Struct servo_arc::HeaderSlice
source · #[repr(C)]pub struct HeaderSlice<H, T> {
pub header: H,
pub(crate) len: usize,
pub(crate) data: [T; 0],
}
Expand description
Structure to allow Arc-managing some fixed-sized data and a variably-sized slice in a single allocation.
cbindgen:derive-eq=false cbindgen:derive-neq=false
Fields§
§header: H
The fixed-sized data.
len: usize
The length of the slice at our end.
data: [T; 0]
The dynamically-sized data.
Implementations§
Trait Implementations§
source§impl<H, T> Drop for HeaderSlice<H, T>
impl<H, T> Drop for HeaderSlice<H, T>
source§impl<H: PartialEq, T: PartialEq> PartialEq for HeaderSlice<H, T>
impl<H: PartialEq, T: PartialEq> PartialEq for HeaderSlice<H, T>
impl<H: Eq, T: Eq> Eq for HeaderSlice<H, T>
Auto Trait Implementations§
impl<H, T> Freeze for HeaderSlice<H, T>
impl<H, T> RefUnwindSafe for HeaderSlice<H, T>where
H: RefUnwindSafe,
T: RefUnwindSafe,
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>where
H: UnwindSafe,
T: 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