Struct syn::TyParam [] [src]

pub struct TyParam {
    pub attrs: Vec<Attribute>,
    pub ident: Ident,
    pub bounds: Vec<TyParamBound>,
    pub default: Option<Ty>,
}

A generic type parameter, e.g. T: Into<String>.

Fields

Trait Implementations

impl ToTokens for TyParam
[src]

Write self to the given Tokens. Read more

impl Debug for TyParam
[src]

Formats the value using the given formatter.

impl Clone for TyParam
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for TyParam
[src]

impl PartialEq for TyParam
[src]

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

This method tests for !=.

impl Hash for TyParam
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl From<Ident> for TyParam
[src]

Performs the conversion.