Struct syntex_syntax::ast::Generics [] [src]

pub struct Generics {
    pub lifetimes: Vec<LifetimeDef>,
    pub ty_params: Vec<TyParam>,
    pub where_clause: WhereClause,
    pub span: Span,
}

Represents lifetimes and type parameters attached to a declaration of a function, enum, trait, etc.

Fields

Methods

impl Generics
[src]

Trait Implementations

impl Clone for Generics
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Generics
[src]

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

This method tests for !=.

impl Eq for Generics
[src]

impl Encodable for Generics
[src]

Serialize a value using an Encoder.

impl Decodable for Generics
[src]

Deserialize a value using a Decoder.

impl Hash for Generics
[src]

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

Feeds a slice of this type into the state provided.

impl Debug for Generics
[src]

Formats the value using the given formatter.

impl Default for Generics
[src]

Creates an instance of Generics.

impl ToTokens for Generics
[src]