Enum syn::FnArg
[−]
[src]
pub enum FnArg {
SelfRef(Option<Lifetime>, Mutability),
SelfValue(Mutability),
Captured(Pat, Ty),
Ignored(Ty),
}An argument in a function header.
E.g. bar: usize as in fn foo(bar: usize)
Variants
SelfRef(Option<Lifetime>, Mutability)SelfValue(Mutability)Captured(Pat, Ty)Ignored(Ty)
Trait Implementations
impl ToTokens for FnArg[src]
impl Debug for FnArg[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for FnArg[src]
fn clone(&self) -> FnArg[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Eq for FnArg[src]
impl PartialEq for FnArg[src]
fn eq(&self, __arg_0: &FnArg) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &FnArg) -> bool[src]
This method tests for !=.