FromValueMut

Trait FromValueMut 

Source
pub trait FromValueMut<'a>: Sized {
    // Required method
    fn from_value_mut(value: &'a mut Value) -> Option<Self>;
}
Expand description

Attempt to unwrap or parse Self from a mutably referenced Value.

Required Methods§

Source

fn from_value_mut(value: &'a mut Value) -> Option<Self>

Attempts to perform the conversion, returning None if the given value can not be used to produce Self.

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<'a> FromValueMut<'a> for &'a mut String

Source§

fn from_value_mut(value: &'a mut Value) -> Option<&'a mut String>

Source§

impl<'a> FromValueMut<'a> for &'a mut Vec<Value>

Source§

fn from_value_mut(value: &'a mut Value) -> Option<&'a mut Vec<Value>>

Implementors§

Source§

impl<'a> FromValueMut<'a> for &'a mut Table

Source§

impl<'a, T> FromValueMut<'a> for T
where T: FromValue<'a>,