[][src]Struct canrun::collections::lvec::LVec

pub struct LVec<T: Debug> { /* fields omitted */ }

A Vec-like data structure with LVar values.

Implementations

impl<V: Debug> LVec<V>[src]

pub fn new() -> Self[src]

Create a new LVec value.

You may also be interested in the lvec! macro.

Example:

use canrun::lvec::LVec;

let map: LVec<i32> = LVec::new();

pub fn len(&self) -> usize[src]

Get the number of elements in the LVec.

Example:

use canrun::lvec::{LVec, lvec};

let map: LVec<i32> = lvec![1, 2];
assert_eq!(map.len(), 2);

pub fn push<Vi>(&mut self, value: Vi) where
    Vi: IntoVal<V>, 
[src]

Add a value to an existing LVec.

Example:

use canrun::lvec::LVec;

let mut map: LVec<i32> = LVec::new();
map.push(1);

Trait Implementations

impl<T: Clone + Debug> Clone for LVec<T>[src]

impl<T: Debug> Debug for LVec<T>[src]

impl<'a> DomainType<'a, LVec<i32>> for Collections[src]

impl<'a, T, I, IV> From<I> for LVec<T> where
    T: Debug,
    IV: IntoVal<T>,
    I: IntoIterator<Item = IV>, 
[src]

impl<'a, D, T> ReifyIn<'a, D> for LVec<T> where
    T: ReifyIn<'a, D> + Debug,
    D: DomainType<'a, T> + 'a, 
[src]

type Reified = Vec<T::Reified>

The "concrete" type that Self reifies to.

impl<'a, T, D> UnifyIn<'a, D> for LVec<T> where
    T: UnifyIn<'a, D>,
    D: DomainType<'a, T> + DomainType<'a, LVec<T>>, 
[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for LVec<T>

impl<T> !Send for LVec<T>

impl<T> !Sync for LVec<T>

impl<T> Unpin for LVec<T> where
    T: Unpin

impl<T> UnwindSafe for LVec<T> where
    T: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,