pub struct ListType {
pub element: Box<ValueType>,
}Expand description
List type representing ordered collections.
List types specify the type of elements they contain. All elements in a CEL list must be of the same type (or compatible types).
§Examples
use cel_cxx::*;
// List of integers: list<int>
let int_list = ListType::new(ValueType::Int);
// List of strings: list<string>
let string_list = ListType::new(ValueType::String);
// Nested list: list<list<int>>
let nested_list = ListType::new(ValueType::List(int_list));Fields§
§element: Box<ValueType>The type of elements in this list.
Implementations§
Trait Implementations§
impl Eq for ListType
impl StructuralPartialEq for ListType
Auto Trait Implementations§
impl Freeze for ListType
impl RefUnwindSafe for ListType
impl Send for ListType
impl Sync for ListType
impl Unpin for ListType
impl UnwindSafe for ListType
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more