pub enum ValueKind {
Leaf(TypeId),
Tuple(Vec<AssociatedType>),
Array(ValueType),
Callable {
parameters: Vec<ValueType>,
result: Box<ValueType>,
},
}Expand description
Identifies a value structurally, independently of aggregate storage markers.
Callable metadata includes every parameter and the result. Its private
ownership plan uses the shared DynClosure carrier, exactly matching the
transparent crate::Callable facade authorized by FnOf.
§Examples
use cel_runtime::value_type::{ValueKind, ValueType};
assert!(matches!(ValueType::leaf::<i32>().kind(), ValueKind::Leaf(_)));Variants§
Leaf(TypeId)
A single explicitly registered opaque Rust type.
Tuple(Vec<AssociatedType>)
Source-ordered fields with canonical physical offsets.
Array(ValueType)
One complete homogeneous element descriptor.
Callable
Complete semantic callable signature for the shared closure carrier.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValueKind
impl RefUnwindSafe for ValueKind
impl Send for ValueKind
impl Sync for ValueKind
impl Unpin for ValueKind
impl UnsafeUnpin for ValueKind
impl UnwindSafe for ValueKind
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