pub fn add_state(&mut self, i: usize, state: StateSpaceType) {

        // If i has not been entered already, create entry with Empty, otherwise return current
        // value
        let statespace = self.definition.entry(i).or_insert(StateSpaceType::Empty);
        // Modify the Empty or current value with given value
        *statespace = state;
    }
/// Updates a state entry for a given index value, i. If i has not been entered already, a new
/// entry with the new state is created.
Updates a state entry for a given index value, i. If i has not been entered already, a new
entry with the new state is created.
Updates a state entry for a given index value i . If i has not been entered already a new entry with the new state is created .
pub fn add_state(&mut self, i: usize, state: StateSpaceType) {
        // If i has not been entered already, create entry with Empty, otherwise return current
        // value
        let statespace = self.definition.entry(i).or_insert(StateSpaceType::Empty);
        // Modify the Empty or current value with given value
        *statespace = state;
    }
pub fn add_state ( & mut self , i : usize , state : StateSpaceType ) { // If i has not been entered already, create entry with Empty, otherwise return current // value let statespace = self . definition . entry ( i ) . or_insert ( StateSpaceType :: Empty ) ; // Modify the Empty or current value with given value * statespace = state ; }
Updates a state entry for a given index value, i.
Updates a state entry for a given index value i .
&mut self
i
usize
state
StateSpaceType
&mut self
i
usize
state
StateSpaceType