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