pub trait CollectTypeParams {
// Required methods
fn collect_type_params<'a>(
self,
options: &Options,
type_set: &'a IdentSet,
) -> IdentRefSet<'a>;
fn collect_type_params_cloned(
self,
options: &Options,
type_set: &IdentSet,
) -> IdentSet;
}
Expand description
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§
sourcefn collect_type_params<'a>(
self,
options: &Options,
type_set: &'a IdentSet,
) -> IdentRefSet<'a>
fn collect_type_params<'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
.
sourcefn collect_type_params_cloned(
self,
options: &Options,
type_set: &IdentSet,
) -> IdentSet
fn collect_type_params_cloned( self, options: &Options, type_set: &IdentSet, ) -> IdentSet
Consume an iterator using collect_type_params
, then clone all found type params and return that set.