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
params: Vec<GenericParam>
                           
                           
                           
                           where_clause: WhereClause
                           
                           
                           
                           span: Span
                           
                Trait Implementations
impl Clone for Generics[src] 
impl Clone for Genericsfn clone(&self) -> Generics[src] 
fn clone(&self) -> GenericsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Encodable for Generics[src] 
impl Encodable for Genericsimpl Decodable for Generics[src] 
impl Decodable for Genericsimpl Debug for Generics[src] 
impl Debug for Genericsfn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for Generics[src] 
impl Default for Genericsimpl ToTokens for Generics[src] 
impl ToTokens for Generics