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: u16Trait Implementations
sourceimpl Ord for OptDelta
impl Ord for OptDelta
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
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 · 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 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
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