pub trait FromValue {
// Required method
fn from_value(v: &Value) -> Option<Self>
where Self: Sized;
}
Expand description
Helper trait
Required Methods§
Sourcefn from_value(v: &Value) -> Option<Self>where
Self: Sized,
fn from_value(v: &Value) -> Option<Self>where
Self: Sized,
Converts value to specified type.
Implementations on Foreign Types§
Implementors§
impl FromValue for Element
Get an Element
object contained in the Value
.
impl FromValue for Graphics
Get an Graphics
object contained in the Value
.
impl FromValue for Image
Get an Image
object contained in the Value
.
impl FromValue for Path
Get a Path
object contained in the Value
.
impl FromValue for Text
Get a Text
object contained in the Value
.