Struct canrun::collections::lvec::LVec

source ·
pub struct LVec<T: Unify> { /* private fields */ }
Expand description

A Vec-like data structure with Value values.

Construct with the lvec! macro, or you can use the From<Vec<Value<T>>> or FromIterator<Value<T>> trait implementations.

Implementations§

Returns the number of elements in the LVec.

Returns true if the LVec contains no elements.

Trait Implementations§

Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Creates a value from an iterator. Read more
Creates a value from an iterator. Read more
The “concrete” type that Self reifies to.
Extract a reified Self from a compatible State. This trait is usually used indirectly through the Query trait. Read more
Attempt to unify two fully resolved values. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.