Struct syntax::ast::Generics
[−]
[src]
pub struct Generics {
pub lifetimes: Vec<LifetimeDef>,
pub ty_params: OwnedSlice<TyParam>,
pub where_clause: WhereClause,
}Unstable
Represents lifetimes and type parameters attached to a declaration of a function, enum, trait, etc.
Fields
lifetimes | Unstable |
ty_params | Unstable |
where_clause | Unstable |
Methods
impl Generics
fn is_lt_parameterized(&self) -> bool
Unstable
fn is_type_parameterized(&self) -> bool
Unstable
fn is_parameterized(&self) -> bool
Unstable