[][src]Macro lofi::impl_universal_type_id

macro_rules! impl_universal_type_id {
    ($type:ident<$($lts:lifetime),* $(, $tys:ident)* $(,)?>) => { ... };
    (@t $type:ident [$($stat:lifetime),*] [$lt:lifetime $(, $rest:lifetime)*] [$($tys:ident),*]) => { ... };
    (@t $type:ident [$($stat:lifetime),*] [] [$($tys:ident),*]) => { ... };
}

Implement UniversalTypeId for arbitrary named generic type.

Example

struct Foo<'a, 'b, T: 'a, U: 'b>(&'a T, &'b U);

impl_universal_type_id!(Foo<'a, 'b, T, U>);