Skip to main content

FromStructField

Trait FromStructField 

Source
pub trait FromStructField<'a>: Sized {
    // Required method
    fn from_value(field: &str, value: ValueRef<'a>) -> Result<Self>;
}

Required Methods§

Source

fn from_value(field: &str, value: ValueRef<'a>) -> Result<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> FromStructField<'a> for bool

Source§

fn from_value(field: &str, value: ValueRef<'a>) -> Result<Self>

Source§

impl<'a> FromStructField<'a> for Rc<String>

Source§

fn from_value(field: &str, value: ValueRef<'a>) -> Result<Self>

Source§

impl<'a, T> FromStructField<'a> for Option<T>
where T: FromStructField<'a>,

Source§

fn from_value(field: &str, value: ValueRef<'a>) -> Result<Self>

Implementors§