[−][src]Trait darling_core::usage::CollectLifetimes
Searcher for finding lifetimes in an iterator.
This trait extends iterators, providing a way to turn a filtered list of fields or variants into a set of lifetimes.
Required methods
fn collect_lifetimes<'a>(
self,
options: &Options,
lifetimes: &'a LifetimeSet
) -> LifetimeRefSet<'a>
self,
options: &Options,
lifetimes: &'a LifetimeSet
) -> LifetimeRefSet<'a>
Consume an iterator, accumulating all lifetimes in the elements which occur in lifetimes
.
fn collect_lifetimes_cloned(
self,
options: &Options,
lifetimes: &LifetimeSet
) -> LifetimeSet
self,
options: &Options,
lifetimes: &LifetimeSet
) -> LifetimeSet
Consume an iterator using collect_lifetimes
, then clone all found lifetimes and return that set.
Implementors
impl<'i, I, T> CollectLifetimes for T where
T: IntoIterator<Item = &'i I>,
I: 'i + UsesLifetimes,
[src]
T: IntoIterator<Item = &'i I>,
I: 'i + UsesLifetimes,
fn collect_lifetimes<'a>(
self,
options: &Options,
lifetimes: &'a LifetimeSet
) -> LifetimeRefSet<'a>
[src]
self,
options: &Options,
lifetimes: &'a LifetimeSet
) -> LifetimeRefSet<'a>
fn collect_lifetimes_cloned(
self,
options: &Options,
lifetimes: &LifetimeSet
) -> LifetimeSet
[src]
self,
options: &Options,
lifetimes: &LifetimeSet
) -> LifetimeSet