pub struct LVec<T: Debug> { /* fields omitted */ }
Expand description
A Vec
-like data structure with LVar
values.
Create a new LVec
value.
You may also be interested in the lvec!
macro.
use canrun::lvec::LVec;
let map: LVec<i32> = LVec::new();
Get the number of elements in the LVec.
use canrun::lvec::{LVec, lvec};
let map: LVec<i32> = lvec![1, 2];
assert_eq!(map.len(), 2);
Returns true if the LVec contains no elements.
use canrun::lvec::{LVec, lvec};
let map: LVec<i32> = lvec![1, 2];
assert_eq!(map.is_empty(), false);
Add a value to an existing LVec
.
use canrun::lvec::LVec;
let mut map: LVec<i32> = LVec::new();
map.push(1);
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
The “concrete” type that Self
reifies to.
Attempt to unify two fully resolved values. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,