Function pmhelp_internal::util::create_new_lifetimes [−][src]
pub fn create_new_lifetimes<const N: usize>(
base: &Generics
) -> ([Lifetime; N], Generics)
Expand description
Creates the desired number of new lifetimes that won’t conflict with the provided Generics
by continuously iterating through different possibilities of single letters (e.g. 'a
, 'b',
‘c’, etcetera), adding and additional letter if all other lifetimes are exhausted. This then
returns an array of the requested lifetimes, as well as a clone of the Generics
instance with
the lifetimes appended to them.