pub struct OptDelta(pub u16);
Expand description
The “Option Delta” is the difference between this Option’s Number and the previous Option’s number.
This is just used to compute the Option Number, identifying which Option is being set (e.g. Content-Format has a Number of 12)
Related
Tuple Fields§
§0: u16
Trait Implementations§
source§impl Ord for OptDelta
impl Ord for OptDelta
source§impl PartialEq<OptDelta> for OptDelta
impl PartialEq<OptDelta> for OptDelta
source§impl PartialOrd<OptDelta> for OptDelta
impl PartialOrd<OptDelta> for OptDelta
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 Copy for OptDelta
impl Eq for OptDelta
impl StructuralEq for OptDelta
impl StructuralPartialEq for OptDelta
Auto Trait Implementations§
impl RefUnwindSafe for OptDelta
impl Send for OptDelta
impl Sync for OptDelta
impl Unpin for OptDelta
impl UnwindSafe for OptDelta
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