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 Variable
s.
Required Methods§
Sourcefn from_arg_list(args: &mut VecDeque<Variable>) -> Self
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.
Sourcefn as_arg_list(&self) -> impl IntoIterator<Item = Variable>
fn as_arg_list(&self) -> impl IntoIterator<Item = Variable>
Turns this type into a list of Variable
s.
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.