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