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