1
pub type GearId = u16;
2
pub trait GearData {}
3
4
pub trait GearDataProcessor<T: GearData> {
5
fn add(&mut self, gear_id: GearId, gear_data: T);
6
}
7
8
pub trait GearDataAggregator<T: GearData> {
9
fn find_processor(&mut self) -> &mut GearDataProcessor<T>;
10