Struct servo_arc::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: 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>
source§fn eq(&self, other: &HeaderSlice<H, T>) -> bool
fn eq(&self, other: &HeaderSlice<H, T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<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>
source§fn partial_cmp(&self, other: &HeaderSlice<H, T>) -> Option<Ordering>
fn partial_cmp(&self, other: &HeaderSlice<H, T>) -> Option<Ordering>
1.0.0 · source§fn 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 more