Expand description
A low-cost copyable Opt that stores a reference to the value
Fields§
§delta: OptDelta§value: &'a OptValue<C>Trait Implementations§
source§impl<'a, C: Array<Item = u8>> GetSize for OptRef<'a, C>
impl<'a, C: Array<Item = u8>> GetSize for OptRef<'a, C>
source§impl<'a, C: Ord> Ord for OptRef<'a, C>
impl<'a, C: Ord> Ord for OptRef<'a, C>
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, C: PartialEq> PartialEq<OptRef<'a, C>> for OptRef<'a, C>
impl<'a, C: PartialEq> PartialEq<OptRef<'a, C>> for OptRef<'a, C>
source§impl<'a, C: PartialOrd> PartialOrd<OptRef<'a, C>> for OptRef<'a, C>
impl<'a, C: PartialOrd> PartialOrd<OptRef<'a, C>> for OptRef<'a, C>
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 more