Struct syntax::ast::Generics[][src]

pub struct Generics {
    pub params: Vec<GenericParam>,
    pub where_clause: WhereClause,
    pub span: Span,
}

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

Fields

Trait Implementations

impl Clone for Generics
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Encodable for Generics
[src]

impl Decodable for Generics
[src]

impl Debug for Generics
[src]

Formats the value using the given formatter. Read more

impl Default for Generics
[src]

Creates an instance of Generics.

impl ToTokens for Generics
[src]

Important traits for Vec<u8>

Auto Trait Implementations

impl !Send for Generics

impl !Sync for Generics