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 Generics
fn clone(&self) -> Generics
[src]
fn clone(&self) -> Generics
Returns 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 Generics
impl Decodable for Generics
[src]
impl Decodable for Generics
impl Debug for Generics
[src]
impl Debug for Generics
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Generics
[src]
impl Default for Generics
impl ToTokens for Generics
[src]
impl ToTokens for Generics