pub struct HeaderSliceWithLengthProtected<H, T> { /* private fields */ }Expand description
A type wrapping HeaderSlice<HeaderWithLength<H>, T> that is used internally in ThinArc.
§Safety
Safety-usable invariants:
- This is guaranteed to have the same representation as
HeaderSlice<HeaderWithLength<H>, [T]> - The header length (
.length()) is checked to be the slice length
Implementations§
Trait Implementations§
Source§impl<H: PartialEq, T: PartialEq> PartialEq for HeaderSliceWithLengthProtected<H, T>
impl<H: PartialEq, T: PartialEq> PartialEq for HeaderSliceWithLengthProtected<H, T>
Source§fn eq(&self, other: &HeaderSliceWithLengthProtected<H, T>) -> bool
fn eq(&self, other: &HeaderSliceWithLengthProtected<H, T>) -> bool
Tests for
self and other values to be equal, and is used by ==.