Enum jrsonnet_evaluator::Val [−][src]
pub enum Val { Bool(bool), Null, Str(IStr), Num(f64), Arr(ArrValue), Obj(ObjValue), Func(Gc<FuncVal>), }
Variants
Bool(bool)
Str(IStr)
Num(f64)
Arr(ArrValue)
Obj(ObjValue)
Implementations
Creates Val::Num
after checking for numeric overflow.
As numbers are f64
, we can just check for their finity.
Expects value to be object, outputs (key, manifested value) pairs
Expects value to be array, outputs manifested values
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Val
impl !UnwindSafe for Val
Blanket Implementations
Mutably borrows from an owned value. Read more