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 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]

impl Decodable for Generics
[src]

impl Hash for Generics
[src]

Feeds this value into the given [Hasher]. Read more

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

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