FromValue

Trait FromValue 

Source
pub trait FromValue {
    // Required method
    fn from_value(v: &Value) -> Option<Self>
       where Self: Sized;
}
Expand description

Helper trait

Required Methods§

Source

fn from_value(v: &Value) -> Option<Self>
where Self: Sized,

Converts value to specified type.

Implementations on Foreign Types§

Source§

impl FromValue for bool

Source§

impl FromValue for f64

Source§

impl FromValue for i32

Source§

impl FromValue for String

Source§

impl FromValue for Vec<u8>

Implementors§

Source§

impl FromValue for Element

Get an Element object contained in the Value.

Source§

impl FromValue for Graphics

Get an Graphics object contained in the Value.

Source§

impl FromValue for Image

Get an Image object contained in the Value.

Source§

impl FromValue for Path

Get a Path object contained in the Value.

Source§

impl FromValue for Text

Get a Text object contained in the Value.

Source§

impl FromValue for Value