FromValueBehavior

Trait FromValueBehavior 

Source
pub trait FromValueBehavior {
    type Item;

    // Required method
    fn from_value(value: Value) -> Option<Self::Item>;
}
Expand description

A trait for converting Value to types.

Required Associated Types§

Required Methods§

Source

fn from_value(value: Value) -> Option<Self::Item>

Converts a Value into a type.

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.

Implementations on Foreign Types§

Source§

impl FromValueBehavior for &str

Source§

impl FromValueBehavior for bool

Source§

impl FromValueBehavior for f32

Source§

impl FromValueBehavior for f64

Source§

impl FromValueBehavior for i8

Source§

impl FromValueBehavior for i16

Source§

impl FromValueBehavior for i32

Source§

impl FromValueBehavior for i64

Source§

impl FromValueBehavior for i128

Source§

impl FromValueBehavior for str

Source§

impl FromValueBehavior for u8

Source§

impl FromValueBehavior for u16

Source§

impl FromValueBehavior for u32

Source§

impl FromValueBehavior for u64

Source§

impl FromValueBehavior for u128

Source§

impl FromValueBehavior for String

Source§

impl<T> FromValueBehavior for Option<T>

Source§

impl<T> FromValueBehavior for BTreeMap<String, T>

Source§

impl<T> FromValueBehavior for Vec<T>

Source§

impl<T> FromValueBehavior for HashMap<String, T>

Implementors§