pub fn insert_axis<A: Into<T::Axis>>(
        &mut self,
        id: A,
        axis: Axis,
    ) -> Result<Option<Axis>, BindingError<T>> {
        let id = id.into();
        self.check_axis_invariants(&id, &axis)?;
        Ok(self.axes.insert(id, axis))
    }
/// Assign an axis to an ID value
///
/// This will insert a new axis if no entry for this id exists.
/// If one does exist this will replace the axis at that id and return it.
Assign an axis to an ID value
This will insert a new axis if no entry for this id exists.
If one does exist this will replace the axis at that id and return it.
Assign an axis to an ID value This will insert a new axis if no entry for this id exists . If one does exist this will replace the axis at that id and return it .
pub fn insert_axis<A: Into<T::Axis>>(
        &mut self,
        id: A,
        axis: Axis,
    ) -> Result<Option<Axis>, BindingError<T>> {
        let id = id.into();
        self.check_axis_invariants(&id, &axis)?;
        Ok(self.axes.insert(id, axis))
    }
pub fn insert_axis < A : Into < T :: Axis > > ( & mut self , id : A , axis : Axis , ) -> Result < Option < Axis > , BindingError < T > > { let id = id . into ( ) ; self . check_axis_invariants ( & id , & axis ) ? ; Ok ( self . axes . insert ( id , axis ) ) }
Assign an axis to an ID value
This will insert a new axis if no entry for this id exists.
Assign an axis to an ID value This will insert a new axis if no entry for this id exists .
&mut self
id
A
axis
Axis