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>> Len for OptRef<'a, C>
impl<'a, C: Array<Item = u8>> Len for OptRef<'a, C>
Source§impl<'a, C> Ord for OptRef<'a, C>
impl<'a, C> Ord for OptRef<'a, C>
Source§impl<'a, C> PartialOrd for OptRef<'a, C>
impl<'a, C> PartialOrd for OptRef<'a, C>
impl<'a, C: Copy> Copy for OptRef<'a, C>
impl<'a, C> Eq for OptRef<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for OptRef<'a, C>
impl<'a, C> RefUnwindSafe for OptRef<'a, C>where
C: RefUnwindSafe,
impl<'a, C> Send for OptRef<'a, C>where
C: Sync,
impl<'a, C> Sync for OptRef<'a, C>where
C: Sync,
impl<'a, C> Unpin for OptRef<'a, C>
impl<'a, C> UnwindSafe for OptRef<'a, C>where
C: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more