Trait darling::usage::GenericsExt[][src]

pub trait GenericsExt {
    pub fn declared_lifetimes(
        &self
    ) -> HashSet<Lifetime, BuildHasherDefault<FnvHasher>>;
pub fn declared_type_params(
        &self
    ) -> HashSet<Ident, BuildHasherDefault<FnvHasher>>; }

Extension trait for pulling specific generics data from a generics AST representation.

Required methods

pub fn declared_lifetimes(
    &self
) -> HashSet<Lifetime, BuildHasherDefault<FnvHasher>>
[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.

pub fn declared_type_params(
    &self
) -> HashSet<Ident, BuildHasherDefault<FnvHasher>>
[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.

Loading content...

Implementations on Foreign Types

impl GenericsExt for Generics[src]

Loading content...

Implementors

Loading content...