Trait darling_core::usage::GenericsExt [−][src]
pub trait GenericsExt { fn declared_lifetimes(&self) -> LifetimeSet; fn declared_type_params(&self) -> IdentSet; }
Extension trait for pulling specific generics data from a generics AST representation.
Required methods
fn declared_lifetimes(&self) -> LifetimeSet
[src]
Get the set of all lifetimes declared by the syntax element.
This does not look for usage of the lifetime; see UsesLifetimes
for that.
fn declared_type_params(&self) -> IdentSet
[src]
Get the set of all type parameters declared by the syntax element.
This does not look for usage of the type parameter; see UsesTypeParams
for that.
Implementations on Foreign Types
impl GenericsExt for Generics
[src]
impl GenericsExt for Generics
[src]