Enum cel_interpreter::objects::Value
source · pub enum Value {
List(Arc<Vec<Value>>),
Map(Map),
Function(Arc<String>, Option<Box<Value>>),
Int(i64),
UInt(u64),
Float(f64),
String(Arc<String>),
Bytes(Arc<Vec<u8>>),
Bool(bool),
Duration(Duration),
Timestamp(DateTime<FixedOffset>),
Null,
}
Variants§
List(Arc<Vec<Value>>)
Map(Map)
Function(Arc<String>, Option<Box<Value>>)
Int(i64)
UInt(u64)
Float(f64)
String(Arc<String>)
Bytes(Arc<Vec<u8>>)
Bool(bool)
Duration(Duration)
Timestamp(DateTime<FixedOffset>)
Null
Implementations§
source§impl Value
impl Value
pub fn type_of(&self) -> ValueType
pub fn error_expected_type(&self, expected: ValueType) -> ExecutionError
source§impl<'a> Value
impl<'a> Value
pub fn resolve_all(expr: &[Expression], ctx: &Context<'_>) -> ResolveResult
pub fn resolve(expr: &'a Expression, ctx: &Context<'_>) -> ResolveResult
Trait Implementations§
source§impl From<DateTime<FixedOffset>> for Value
impl From<DateTime<FixedOffset>> for Value
source§fn from(value: DateTime<FixedOffset>) -> Self
fn from(value: DateTime<FixedOffset>) -> Self
Converts to this type from the input type.
source§impl From<Value> for ResolveResult
impl From<Value> for ResolveResult
source§impl PartialEq for Value
impl PartialEq for Value
source§impl PartialOrd for Value
impl PartialOrd for Value
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more