Skip to main content

AnyValueSpec

Trait AnyValueSpec 

Source
pub trait AnyValueSpec {
    type Item;

    // Required methods
    fn to_any_value(s: Self::Item) -> AnyValue;
    fn from_any_value(v: &AnyValue) -> &Self::Item;
    fn from_any_value_mut(v: &mut AnyValue) -> &mut Self::Item;
    fn pop_any_value(v: AnyValue) -> Self::Item;
}
Expand description

Specification for values stored in Context.

Required Associated Types§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§