Enum devise::syn::FnArg [−][src]
pub enum FnArg {
SelfRef(ArgSelfRef),
SelfValue(ArgSelf),
Captured(ArgCaptured),
Inferred(Pat),
Ignored(Type),
}Expand description
An argument in a function signature: the n: usize in fn f(n: usize).
This type is available if Syn is built with the "full" feature.
Syntax tree enum
This type is a syntax tree enum.
Variants
SelfRef(ArgSelfRef)Self captured by reference in a function signature: &self or &mut self.
This type is available if Syn is built with the "full" feature.
Tuple Fields of SelfRef
0: ArgSelfRefSelfValue(ArgSelf)Self captured by value in a function signature: self or mut self.
This type is available if Syn is built with the "full" feature.
Tuple Fields of SelfValue
0: ArgSelfCaptured(ArgCaptured)An explicitly typed pattern captured by a function signature.
This type is available if Syn is built with the "full" feature.
Tuple Fields of Captured
0: ArgCapturedInferred(Pat)A pattern whose type is inferred captured by a function signature.
Tuple Fields of Inferred
0: PatIgnored(Type)A type not bound to any pattern in a function signature.
Tuple Fields of Ignored
0: TypeTrait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for FnArg
impl UnwindSafe for FnArg
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty. Read more