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 PartialEq for Generics[src]
impl PartialEq for Genericsfn eq(&self, other: &Generics) -> bool[src]
fn eq(&self, other: &Generics) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Generics) -> bool[src]
fn ne(&self, other: &Generics) -> boolThis method tests for !=.
impl Eq for Generics[src]
impl Eq for Genericsimpl Encodable for Generics[src]
impl Encodable for Genericsimpl Decodable for Generics[src]
impl Decodable for Genericsimpl Hash for Generics[src]
impl Hash for Genericsfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl 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