pub struct Lean<L: LeanRepr> { /* private fields */ }Expand description
A Lean value of the type named by L, kept as the Lean object.
Lean::new converts a Rust value once and get converts it back. The functions of the
lean module of a generated module take handles and return them without converting.
Cloning a handle adds a reference to the same object.
Implementations§
Trait Implementations§
impl<L: LeanRepr> IntoLean<L> for Lean<L>
impl<L: LeanRepr> IntoLean<L> for &Lean<L>
impl<L: LeanRepr> Send for Lean<L>
impl<L: LeanRepr> Sync for Lean<L>
Auto Trait Implementations§
impl<L> Forget for Lean<L>
impl<L> Freeze for Lean<L>
impl<L> Move for Lean<L>
impl<L> RefUnwindSafe for Lean<L>
impl<L> Unpin for Lean<L>
impl<L> UnsafeUnpin for Lean<L>
impl<L> UnwindSafe for Lean<L>
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