[−][src]Struct canrun::collections::lvec::LVec
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]
Vi: IntoVal<V>,
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]
fn values_as_ref(&self) -> &DomainValues<LVec<i32>>
[src]
fn values_as_mut(&mut self) -> &mut DomainValues<LVec<i32>>
[src]
fn into_domain_val(val: Val<LVec<i32>>) -> CollectionsValue
[src]
impl<'a, T, I, IV> From<I> for LVec<T> where
T: Debug,
IV: IntoVal<T>,
I: IntoIterator<Item = IV>,
[src]
T: Debug,
IV: IntoVal<T>,
I: IntoIterator<Item = IV>,
impl<'a, D, T> ReifyIn<'a, D> for LVec<T> where
T: ReifyIn<'a, D> + Debug,
D: DomainType<'a, T> + 'a,
[src]
T: ReifyIn<'a, D> + Debug,
D: DomainType<'a, T> + 'a,
type Reified = Vec<T::Reified>
The "concrete" type that Self
reifies to.
fn reify_in(&self, state: &ResolvedState<D>) -> Option<Self::Reified>
[src]
impl<'a, T, D> UnifyIn<'a, D> for LVec<T> where
T: UnifyIn<'a, D>,
D: DomainType<'a, T> + DomainType<'a, LVec<T>>,
[src]
T: UnifyIn<'a, D>,
D: DomainType<'a, T> + DomainType<'a, LVec<T>>,
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,
T: Unpin,
impl<T> UnwindSafe for LVec<T> where
T: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,