equal
deleted
inserted
replaced
12 pub trait TypeTuple: Sized { |
12 pub trait TypeTuple: Sized { |
13 fn get_types(types: &mut Vec<TypeId>); |
13 fn get_types(types: &mut Vec<TypeId>); |
14 } |
14 } |
15 |
15 |
16 impl TypeTuple for () { |
16 impl TypeTuple for () { |
17 fn get_types(types: &mut Vec<TypeId>) {} |
17 fn get_types(_types: &mut Vec<TypeId>) {} |
18 } |
18 } |
19 |
19 |
20 impl<T: 'static> TypeTuple for &T { |
20 impl<T: 'static> TypeTuple for &T { |
21 fn get_types(types: &mut Vec<TypeId>) { |
21 fn get_types(types: &mut Vec<TypeId>) { |
22 types.push(TypeId::of::<T>()); |
22 types.push(TypeId::of::<T>()); |