FromVariable

Trait FromVariable 

Source
pub trait FromVariable {
    type Output;
    type RefOutput<'a>
       where Self: 'a;
    type MutOutput<'a>
       where Self: 'a;

    // Required methods
    fn from_var(var: Variable) -> Result<Self::Output, ParseVariableError>;
    fn from_var_ref(
        var: &Variable,
    ) -> Result<Self::RefOutput<'_>, ParseVariableError>;
    fn from_var_mut(
        var: &mut Variable,
    ) -> Result<Self::MutOutput<'_>, ParseVariableError>;
}

Required Associated Types§

Source

type Output

Source

type RefOutput<'a> where Self: 'a

Source

type MutOutput<'a> where Self: 'a

Required Methods§

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 FromVariable for bool

Source§

impl FromVariable for char

Source§

impl FromVariable for f32

Source§

impl FromVariable for f64

Source§

impl FromVariable for i8

Source§

impl FromVariable for i16

Source§

impl FromVariable for i32

Source§

impl FromVariable for i64

Source§

impl FromVariable for u8

Source§

impl FromVariable for u16

Source§

impl FromVariable for u32

Source§

impl FromVariable for u64

Source§

impl FromVariable for String

Source§

impl FromVariable for Vec<Variable>

Source§

impl<T> FromVariable for Vec<T>
where T: FromVariable,

Implementors§