Enum syn::GenericMethodArgument[][src]

pub enum GenericMethodArgument {
    Type(Type),
    Const(Expr),
}

An individual generic argument to a method, like T.

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

Variants

A type argument.

A const expression. Must be inside of a block.

NOTE: Identity expressions are represented as Type arguments, as they are indistinguishable syntactically.

Trait Implementations

impl Synom for GenericMethodArgument
[src]

A short name of the type being parsed. Read more

impl ToTokens for GenericMethodArgument
[src]

Write self to the given Tokens. Read more

Convert self directly into a Tokens object. Read more

impl Clone for GenericMethodArgument
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for GenericMethodArgument

impl !Sync for GenericMethodArgument