FromValue

Trait FromValue 

Source
pub trait FromValue<'a, 'b>: Sized {
    // Required method
    fn from_value(
        value: &'b str,
        position: &'b Position<'a>,
    ) -> Result<'a, Self>;
}

Required Methods§

Source

fn from_value(value: &'b str, position: &'b Position<'a>) -> Result<'a, 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, 'b> FromValue<'a, 'b> for &'b str

Source§

fn from_value(value: &'b str, _position: &'b Position<'a>) -> Result<'a, Self>

Source§

impl<'a, 'b> FromValue<'a, 'b> for &'b Path

Source§

fn from_value(value: &'b str, _position: &'b Position<'a>) -> Result<'a, Self>

Source§

impl<'a, 'b> FromValue<'a, 'b> for Cow<'b, str>

Source§

fn from_value(value: &'b str, _position: &'b Position<'a>) -> Result<'a, Self>

Source§

impl<'a, 'b> FromValue<'a, 'b> for String

Source§

fn from_value(value: &'b str, _position: &'b Position<'a>) -> Result<'a, Self>

Source§

impl<'a, 'b> FromValue<'a, 'b> for PathBuf

Source§

fn from_value(value: &'b str, _position: &'b Position<'a>) -> Result<'a, Self>

Implementors§

Source§

impl<'a, 'b, T> FromValue<'a, 'b> for T
where T: FromNumeric,