pub struct Leaf<T>(/* private fields */);Expand description
Names an opaque host leaf of type T, including explicitly registered ().
Aggregate-looking host types remain opaque when explicitly named as leaves.
§Examples
use cel_runtime::value_type::{Leaf, ValueRepr};
let _: <Leaf<String> as ValueRepr>::Value = String::new();Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Leaf<T>
impl<T> RefUnwindSafe for Leaf<T>
impl<T> Send for Leaf<T>
impl<T> Sync for Leaf<T>
impl<T> Unpin for Leaf<T>
impl<T> UnsafeUnpin for Leaf<T>
impl<T> UnwindSafe for Leaf<T>
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