pub(crate) type HeaderSliceWithLength<H, T> = HeaderSlice<HeaderWithLength<H>, T>;

Aliased Type§

struct HeaderSliceWithLength<H, T> {
    pub header: HeaderWithLength<H>,
    pub slice: T,
}

Fields§

§header: HeaderWithLength<H>

The fixed-sized data.

§slice: T

The dynamically-sized data.

Trait Implementations§

source§

impl<H: Debug, T: Debug + ?Sized> Debug for HeaderSlice<H, T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<H: PartialEq, T: PartialEq + ?Sized> PartialEq<HeaderSlice<H, T>> for HeaderSlice<H, T>

source§

fn eq(&self, other: &HeaderSlice<H, T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

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>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<H: Eq, T: Eq + ?Sized> Eq for HeaderSlice<H, T>

source§

impl<H, T: ?Sized> StructuralEq for HeaderSlice<H, T>

source§

impl<H, T: ?Sized> StructuralPartialEq for HeaderSlice<H, T>