pub fn register_driver(&mut self, driver: NeutronDriver) {
        let res = self
            .registered_drivers
            .iter()
            .find(|d| d.driver_id() == driver.driver_id());
        match res {
            Some(_) => return,
            None => {
                self.registered_drivers.push(driver);
            }
        }
    }
// register a driver if it isnt registered already
// drivers to be registers should be stored in code within generic/ and etc
// and be registered there
register a driver if it isnt registered already
drivers to be registers should be stored in code within generic/ and etc
and be registered there
register a driver if it isnt registered already drivers to be registers should be stored in code within generic / and etc and be registered there
pub fn register_driver(&mut self, driver: NeutronDriver) {
        let res = self
            .registered_drivers
            .iter()
            .find(|d| d.driver_id() == driver.driver_id());
        match res {
            Some(_) => return,
            None => {
                self.registered_drivers.push(driver);
            }
        }
    }
pub fn register_driver ( & mut self , driver : NeutronDriver ) { let res = self . registered_drivers . iter ( ) . find ( | d | d . driver_id ( ) == driver . driver_id ( ) ) ; match res { Some ( _ ) => return , None => { self . registered_drivers . push ( driver ) ; } } }
register a driver if it isnt registered already
drivers to be registers should be stored in code within generic/ and etc
and be registered there
register a driver if it isnt registered already drivers to be registers should be stored in code within generic / and etc and be registered there
&mut self
driver
NeutronDriver
&mut self
driver
NeutronDriver