pub struct Option<C>(/* private fields */);Expand description
Lean’s Option α.
Trait Implementations§
Source§impl<C: Codec> Codec for Option<C>
impl<C: Codec> Codec for Option<C>
Source§fn into_lean(value: Self::Rust) -> Value<Self>
fn into_lean(value: Self::Rust) -> Value<Self>
The Lean value of a Rust value that is given up. What can move is moved.
Source§fn to_lean(value: &Self::Rust) -> Value<Self>
fn to_lean(value: &Self::Rust) -> Value<Self>
The Lean value of a Rust value that stays with the caller. A copy.
Auto Trait Implementations§
impl<C> Forget for Option<C>
impl<C> Freeze for Option<C>where
PhantomData<C>: Freeze,
impl<C> Move for Option<C>
impl<C> RefUnwindSafe for Option<C>where
C: RefUnwindSafe,
impl<C> Send for Option<C>where
C: Send,
impl<C> Sync for Option<C>where
C: Sync,
impl<C> Unpin for Option<C>where
C: Unpin,
impl<C> UnsafeUnpin for Option<C>where
PhantomData<C>: UnsafeUnpin,
impl<C> UnwindSafe for Option<C>where
C: UnwindSafe,
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