pub enum ComputedOffsetId<'a> {
HeaderStart,
PacketEnd,
FieldOffset(&'a str),
FieldEndOffset(&'a str),
Custom(u16),
TrailerStart,
}
Variants§
Trait Implementations§
source§impl<'a> Clone for ComputedOffsetId<'a>
impl<'a> Clone for ComputedOffsetId<'a>
source§fn clone(&self) -> ComputedOffsetId<'a>
fn clone(&self) -> ComputedOffsetId<'a>
Returns a copy of the value. Read more
1.0.0 · 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 ComputedOffsetId<'a>
impl<'a> Debug for ComputedOffsetId<'a>
source§impl<'a> Hash for ComputedOffsetId<'a>
impl<'a> Hash for ComputedOffsetId<'a>
source§impl<'a> Ord for ComputedOffsetId<'a>
impl<'a> Ord for ComputedOffsetId<'a>
source§fn cmp(&self, other: &ComputedOffsetId<'a>) -> Ordering
fn cmp(&self, other: &ComputedOffsetId<'a>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq for ComputedOffsetId<'a>
impl<'a> PartialEq for ComputedOffsetId<'a>
source§fn eq(&self, other: &ComputedOffsetId<'a>) -> bool
fn eq(&self, other: &ComputedOffsetId<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for ComputedOffsetId<'a>
impl<'a> PartialOrd for ComputedOffsetId<'a>
source§fn partial_cmp(&self, other: &ComputedOffsetId<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &ComputedOffsetId<'a>) -> 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 moreimpl<'a> Copy for ComputedOffsetId<'a>
impl<'a> Eq for ComputedOffsetId<'a>
impl<'a> StructuralPartialEq for ComputedOffsetId<'a>
Auto Trait Implementations§
impl<'a> Freeze for ComputedOffsetId<'a>
impl<'a> RefUnwindSafe for ComputedOffsetId<'a>
impl<'a> Send for ComputedOffsetId<'a>
impl<'a> Sync for ComputedOffsetId<'a>
impl<'a> Unpin for ComputedOffsetId<'a>
impl<'a> UnwindSafe for ComputedOffsetId<'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