[][src]Macro darling_core::uses_lifetimes

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

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

Usage

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.