pub struct StuffingSegment<'a> {
pub page_id: u16,
pub data: &'a [u8],
}Expand description
A stuffing segment — opaque data bytes following the header.
Fields§
§page_id: u16The page_id from the segment header.
data: &'a [u8]Opaque stuffing data bytes.
Trait Implementations§
Source§impl<'a> Clone for StuffingSegment<'a>
impl<'a> Clone for StuffingSegment<'a>
Source§fn clone(&self) -> StuffingSegment<'a>
fn clone(&self) -> StuffingSegment<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for StuffingSegment<'a>
impl<'a> Debug for StuffingSegment<'a>
impl<'a> Eq for StuffingSegment<'a>
Source§impl<'a> From<StuffingSegment<'a>> for AnySegment<'a>
impl<'a> From<StuffingSegment<'a>> for AnySegment<'a>
Source§fn from(s: StuffingSegment<'a>) -> Self
fn from(s: StuffingSegment<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for StuffingSegment<'a>
impl<'a> Parse<'a> for StuffingSegment<'a>
Source§impl<'a> PartialEq for StuffingSegment<'a>
impl<'a> PartialEq for StuffingSegment<'a>
Source§fn eq(&self, other: &StuffingSegment<'a>) -> bool
fn eq(&self, other: &StuffingSegment<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> SegmentDef<'a> for StuffingSegment<'a>
impl<'a> SegmentDef<'a> for StuffingSegment<'a>
Source§impl<'a> Serialize for StuffingSegment<'a>
impl<'a> Serialize for StuffingSegment<'a>
Source§impl Serialize for StuffingSegment<'_>
impl Serialize for StuffingSegment<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl<'a> StructuralPartialEq for StuffingSegment<'a>
Auto Trait Implementations§
impl<'a> Freeze for StuffingSegment<'a>
impl<'a> RefUnwindSafe for StuffingSegment<'a>
impl<'a> Send for StuffingSegment<'a>
impl<'a> Sync for StuffingSegment<'a>
impl<'a> Unpin for StuffingSegment<'a>
impl<'a> UnsafeUnpin for StuffingSegment<'a>
impl<'a> UnwindSafe for StuffingSegment<'a>
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