1 2 3 4 5 6 7 8 9 10
///trait for loading and applying data to a concrete data structure pub trait ILoad { type InputType; fn load( & mut self, Self::InputType ) -> Result< (), & 'static str >; fn apply( & mut self ) -> Result< bool, & 'static str >; }