FromArgList

Trait FromArgList 

Source
pub trait FromArgList: Sized {
    // Required methods
    fn from_arg_list(args: &mut VecDeque<Variable>) -> Self;
    fn as_arg_list(&self) -> impl IntoIterator<Item = Variable>;
}
Expand description

Types that can be destructured into and created from a list of Variables.

Required Methods§

Source

fn from_arg_list(args: &mut VecDeque<Variable>) -> Self

Creates this type from a list of variables. This works like a parse stream, where consumed variables are popped from the front.

Source

fn as_arg_list(&self) -> impl IntoIterator<Item = Variable>

Turns this type into a list of Variables.

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

Source§

impl FromArgList for u32

Source§

impl FromArgList for Vec<Variable>

Implementors§