pub fn add_controller<S: Into<String>, C: Controller + 'static>(
        &mut self,
        name: S,
        controller: C,
    ) -> usize {
        let idx = self.controllers.len();
        self.controllers.push(Box::new(controller));
        self.controllers_rev_map.insert(name.into(), idx);
        self.controllers_enabled.grow(idx + 1);
        idx
    }
/// Adds a new controller to this model with the given name. Returns the
/// slot it has been moved into that determines the execution order.
/// The controller is toggled off by default
Adds a new controller to this model with the given name. Returns the
slot it has been moved into that determines the execution order.
The controller is toggled off by default
Adds a new controller to this model with the given name . Returns the slot it has been moved into that determines the execution order . The controller is toggled off by default
pub fn add_controller<S: Into<String>, C: Controller + 'static>(
        &mut self,
        name: S,
        controller: C,
    ) -> usize {
        let idx = self.controllers.len();
        self.controllers.push(Box::new(controller));
        self.controllers_rev_map.insert(name.into(), idx);
        self.controllers_enabled.grow(idx + 1);
        idx
    }
pub fn add_controller < S : Into < String > , C : Controller + ' static > ( & mut self , name : S , controller : C , ) -> usize { let idx = self . controllers . len ( ) ; self . controllers . push ( Box :: new ( controller ) ) ; self . controllers_rev_map . insert ( name . into ( ) , idx ) ; self . controllers_enabled . grow ( idx + 1 ) ; idx }
Adds a new controller to this model with the given name.
Adds a new controller to this model with the given name .
&mut self
name
S
controller
C
&mut self
name
S
controller
C