pub struct OptRef<'a, C> {
pub delta: OptDelta,
pub value: &'a OptValue<C>,
}
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 for OptRef<'a, C>where
C: Array<Item = u8>,
impl<'a, C> Ord for OptRef<'a, C>where C: Array<Item = u8>,
source§impl<'a, C> PartialEq<OptRef<'a, C>> for OptRef<'a, C>where
C: Array<Item = u8>,
impl<'a, C> PartialEq<OptRef<'a, C>> for OptRef<'a, C>where C: Array<Item = u8>,
source§impl<'a, C> PartialOrd<OptRef<'a, C>> for OptRef<'a, C>where
C: Array<Item = u8>,
impl<'a, C> PartialOrd<OptRef<'a, C>> for OptRef<'a, C>where C: Array<Item = u8>,
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