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 PartialOrd for Value
impl PartialOrd for Value
source§impl TryIntoValue for Value
impl TryIntoValue for Value
type Error = Infallible
fn try_into_value(self) -> Result<Value, Self::Error>
impl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)