rust/hwphysics/src/data.rs
changeset 15393 0ef770a40e75
parent 15392 b387a51705ac
child 15395 a87b5e16b863
equal deleted inserted replaced
15392:b387a51705ac 15393:0ef770a40e75
    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>());