macro_rules! uses_lifetimes {
    ($impl_type:ty, $accessor:ident) => { ... };
    ($impl_type:ty, $first:ident, $($field:ident),+) => { ... };
Expand description

Generator for UsesLifetimes impls that unions the used lifetimes of the selected fields.


The macro takes the type implementing the trait as the first argument, then a comma-separated list of fields for the rest of its arguments.

The type of each passed-in field must implement UsesLifetimes, or the resulting code won’t compile.