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. Read more

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 given [Hasher]. Read more

[]

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

impl From<Ident> for TyParam
[src]
[+]

[]

Performs the conversion.

Auto Trait Implementations

impl Send for TyParam

impl Sync for TyParam