Enum syn::FnArg [] [src]

pub enum FnArg {
    SelfRef(ArgSelfRef),
    SelfValue(ArgSelf),
    Captured(ArgCaptured),
    Inferred(Pat),
    Ignored(Type),
}

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

Self captured by reference in a function signature: &self or &mut self.

This type is available if Syn is built with the "full" feature.

Self captured by value in a function signature: self or mut self.

This type is available if Syn is built with the "full" feature.

An explicitly typed pattern captured by a function signature.

This type is available if Syn is built with the "full" feature.

A pattern whose type is inferred captured by a function signature.

A type not bound to any pattern in a function signature.

Trait Implementations

impl Synom for FnArg
[src]

[src]

[src]

impl Debug for FnArg
[src]

[src]

Formats the value using the given formatter.

impl Eq for FnArg
[src]

impl PartialEq for FnArg
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Hash for FnArg
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for FnArg
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<ArgSelfRef> for FnArg
[src]

[src]

Performs the conversion.

impl From<ArgSelf> for FnArg
[src]

[src]

Performs the conversion.

impl From<ArgCaptured> for FnArg
[src]

[src]

Performs the conversion.

impl From<Pat> for FnArg
[src]

[src]

Performs the conversion.

impl From<Type> for FnArg
[src]

[src]

Performs the conversion.

impl ToTokens for FnArg
[src]

[src]

Write self to the given Tokens. Read more

[src]

Convert self directly into a Tokens object. Read more