pub struct Array<C>(/* private fields */);Expand description
Lean’s Array α as a Vec.
Implementations§
Source§impl<C: Codec> Array<C>
impl<C: Codec> Array<C>
Sourcepub fn from_values(
items: impl ExactSizeIterator<Item = Value<C>>,
) -> Value<Self>
pub fn from_values( items: impl ExactSizeIterator<Item = Value<C>>, ) -> Value<Self>
The array of the values items yields.
Trait Implementations§
Source§impl<C: Codec> Codec for Array<C>
impl<C: Codec> Codec for Array<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 Array<C>
impl<C> Freeze for Array<C>where
PhantomData<C>: Freeze,
impl<C> Move for Array<C>
impl<C> RefUnwindSafe for Array<C>where
C: RefUnwindSafe,
impl<C> Send for Array<C>where
C: Send,
impl<C> Sync for Array<C>where
C: Sync,
impl<C> Unpin for Array<C>where
C: Unpin,
impl<C> UnsafeUnpin for Array<C>where
PhantomData<C>: UnsafeUnpin,
impl<C> UnwindSafe for Array<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