Struct rustc::hir::Generics  
                   
                       [−]
                   
               [src]
pub struct Generics {
    pub lifetimes: HirVec<LifetimeDef>,
    pub ty_params: HirVec<TyParam>,
    pub where_clause: WhereClause,
}Unstable (
rustc_private)Represents lifetimes and type parameters attached to a declaration of a function, enum, trait, etc.
Fields
lifetimes: HirVec<LifetimeDef>
                           Unstable (
rustc_private)ty_params: HirVec<TyParam>
                           Unstable (
rustc_private)where_clause: WhereClause
                           Unstable (
rustc_private)Methods
impl Generics[src]
fn empty() -> Generics
fn is_lt_parameterized(&self) -> bool
fn is_type_parameterized(&self) -> bool
fn is_parameterized(&self) -> bool
Trait Implementations
Derived Implementations
impl Debug for Generics[src]
impl Hash for Generics[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Decodable for Generics[src]
impl Encodable for Generics[src]
impl Eq for Generics[src]
impl PartialEq for Generics[src]
fn eq(&self, __arg_0: &Generics) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Generics) -> bool
This method tests for !=.
impl Clone for Generics[src]
fn clone(&self) -> Generics
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more