Enum cel_interpreter::objects::CelType
source · pub enum CelType {
List(Rc<Vec<CelType>>),
Map(CelMap),
Function(Rc<String>, Option<Box<CelType>>),
Int(i32),
UInt(u32),
Float(f64),
String(Rc<String>),
Bytes(Rc<Vec<u8>>),
Bool(bool),
Duration(Duration),
Timestamp(DateTime<FixedOffset>),
Null,
}Variants§
List(Rc<Vec<CelType>>)
Map(CelMap)
Function(Rc<String>, Option<Box<CelType>>)
Int(i32)
UInt(u32)
Float(f64)
String(Rc<String>)
Bytes(Rc<Vec<u8>>)
Bool(bool)
Duration(Duration)
Timestamp(DateTime<FixedOffset>)
Null
Implementations§
source§impl<'a> CelType
impl<'a> CelType
pub fn resolve_all(expr: &'a [Expression], ctx: &Context<'_>) -> ResolveResult
pub fn resolve(expr: &'a Expression, ctx: &Context<'_>) -> ResolveResult
Trait Implementations§
source§impl From<CelType> for ResolveResult
impl From<CelType> for ResolveResult
source§impl Ord for CelType
impl Ord for CelType
source§impl PartialEq<CelType> for CelType
impl PartialEq<CelType> for CelType
source§impl PartialOrd<CelType> for CelType
impl PartialOrd<CelType> for CelType
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 CelType
impl StructuralPartialEq for CelType
Auto Trait Implementations§
impl RefUnwindSafe for CelType
impl !Send for CelType
impl !Sync for CelType
impl Unpin for CelType
impl UnwindSafe for CelType
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