Enum jrsonnet_evaluator::ArrValue[][src]

pub enum ArrValue {
    Lazy(Rc<Vec<LazyVal>>),
    Eager(Rc<Vec<Val>>),
    Extended(Box<(Self, Self)>),
}

Variants

Lazy(Rc<Vec<LazyVal>>)
Eager(Rc<Vec<Val>>)
Extended(Box<(Self, Self)>)

Implementations

impl ArrValue[src]

pub fn new_eager() -> Self[src]

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

pub fn is_empty(&self) -> bool[src]

pub fn get(&self, index: usize) -> Result<Option<Val>>[src]

pub fn get_lazy(&self, index: usize) -> Option<LazyVal>[src]

pub fn evaluated(&self) -> Result<Rc<Vec<Val>>>[src]

pub fn iter(&self) -> impl DoubleEndedIterator<Item = Result<Val>> + '_[src]

pub fn iter_lazy(&self) -> impl DoubleEndedIterator<Item = LazyVal> + '_[src]

pub fn reversed(self) -> Self[src]

pub fn map(self, mapper: impl Fn(Val) -> Result<Val>) -> Result<Self>[src]

pub fn filter(self, filter: impl Fn(&Val) -> Result<bool>) -> Result<Self>[src]

pub fn ptr_eq(a: &Self, b: &Self) -> bool[src]

Trait Implementations

impl Clone for ArrValue[src]

impl Debug for ArrValue[src]

impl From<Vec<LazyVal, Global>> for ArrValue[src]

impl From<Vec<Val, Global>> for ArrValue[src]

Auto Trait Implementations

impl !RefUnwindSafe for ArrValue

impl !Send for ArrValue

impl !Sync for ArrValue

impl Unpin for ArrValue

impl !UnwindSafe for ArrValue

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> 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.