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)
To use this to get Option Numbers, see EnumerateOptNumbers
.
Related
Tuple Fields
0: u16
Trait Implementations
sourceimpl PartialOrd<OptDelta> for OptDelta
impl PartialOrd<OptDelta> for OptDelta
sourcefn partial_cmp(&self, other: &OptDelta) -> Option<Ordering>
fn partial_cmp(&self, other: &OptDelta) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
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 · sourcefn 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 more
impl Copy 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more