FromArgument

Trait FromArgument 

Source
pub trait FromArgument<'a, 'cx>: Sized {
    type Config;

    // Required method
    fn from_argument(
        accessor: &'a mut Accessor<'_, 'cx>,
        config: Self::Config,
    ) -> Result<Self>;
}

Required Associated Types§

Required Methods§

Source

fn from_argument( accessor: &'a mut Accessor<'_, 'cx>, config: Self::Config, ) -> Result<Self>

Converts from an argument.

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.

Implementors§

Source§

impl<'a, 'cx> FromArgument<'a, 'cx> for &'a mut Arguments<'cx>

Source§

impl<'cx> FromArgument<'_, 'cx> for &'cx Context

Source§

impl<'cx, T: FromValue<'cx>> FromArgument<'_, 'cx> for Opt<T>

Source§

type Config = <T as FromValue<'cx>>::Config

Source§

impl<'cx, T: FromValue<'cx>> FromArgument<'_, 'cx> for Rest<T>
where T::Config: Clone,

Source§

type Config = <T as FromValue<'cx>>::Config

Source§

impl<'cx, T: FromValue<'cx>> FromArgument<'_, 'cx> for T

Source§

type Config = <T as FromValue<'cx>>::Config