rust/hwphysics/src/common.rs
author unc0rr
Tue, 04 Jun 2019 22:34:42 +0200
changeset 15120 febccab419b1
parent 14179 abbb74b9cb62
child 15263 24828281c9c5
permissions -rw-r--r--
Apply dos2unix to rust sources

pub type GearId = u16;
pub trait GearData {}

pub trait GearDataProcessor<T: GearData> {
    fn add(&mut self, gear_id: GearId, gear_data: T);
}

pub trait GearDataAggregator<T: GearData> {
    fn find_processor(&mut self) -> &mut GearDataProcessor<T>;
}