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>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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