Trait darling_core::usage::CollectTypeParams
[−]
[src]
pub trait CollectTypeParams { fn collect_type_params<'a>(
self,
options: &Options,
type_set: &'a IdentSet
) -> IdentRefSet<'a>; }
Searcher for finding type params in an iterator.
This trait extends iterators, providing a way to turn a filtered list of fields or variants into a set of type parameter idents.
Required Methods
fn collect_type_params<'a>(
self,
options: &Options,
type_set: &'a IdentSet
) -> IdentRefSet<'a>
self,
options: &Options,
type_set: &'a IdentSet
) -> IdentRefSet<'a>
Consume an iterator, accumulating all type parameters in the elements which occur in type_set
.
Implementors
impl<'i, T, I> CollectTypeParams for T where
T: IntoIterator<Item = &'i I>,
I: 'i + UsesTypeParams,