[][src]Enum jrsonnet_evaluator::FuncVal

pub enum FuncVal {
    Normal(FuncDesc),
    Intrinsic(Rc<str>, Rc<str>),
    NativeExt(Rc<str>, Rc<NativeCallback>),
}

Variants

Normal(FuncDesc)

Plain function implemented in jsonnet

Intrinsic(Rc<str>, Rc<str>)

Standard library function

NativeExt(Rc<str>, Rc<NativeCallback>)

Library functions implemented in native

Implementations

impl FuncVal[src]

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

pub fn name(&self) -> Rc<str>[src]

pub fn evaluate(
    &self,
    call_ctx: Context,
    loc: &Option<ExprLocation>,
    args: &ArgsDesc,
    tailstrict: bool
) -> Result<Val>
[src]

pub fn evaluate_map(
    &self,
    call_ctx: Context,
    args: &HashMap<Rc<str>, Val>,
    tailstrict: bool
) -> Result<Val>
[src]

pub fn evaluate_values(&self, call_ctx: Context, args: &[Val]) -> Result<Val>[src]

Trait Implementations

impl Debug for FuncVal[src]

impl PartialEq<FuncVal> for FuncVal[src]

Auto Trait Implementations

impl !RefUnwindSafe for FuncVal

impl !Send for FuncVal

impl !Sync for FuncVal

impl Unpin for FuncVal

impl !UnwindSafe for FuncVal

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