pub struct MjKeyModelInfo {
pub name: String,
pub id: usize,
/* private fields */
}
Expand description
Stores information required to create views to MjModel
arrays corresponding to a key.
Fields§
§name: String
§id: usize
Implementations§
Source§impl MjKeyModelInfo
impl MjKeyModelInfo
Sourcepub fn view_mut<'d>(&self, model: &'d mut MjModel) -> MjKeyModelViewMut<'d>
pub fn view_mut<'d>(&self, model: &'d mut MjModel) -> MjKeyModelViewMut<'d>
Returns a mutable view to the correct fields in MjModel
Sourcepub fn view<'d>(&self, model: &'d MjModel) -> MjKeyModelView<'d>
pub fn view<'d>(&self, model: &'d MjModel) -> MjKeyModelView<'d>
Returns a view to the correct fields in MjModel
Auto Trait Implementations§
impl Freeze for MjKeyModelInfo
impl RefUnwindSafe for MjKeyModelInfo
impl Send for MjKeyModelInfo
impl Sync for MjKeyModelInfo
impl Unpin for MjKeyModelInfo
impl UnwindSafe for MjKeyModelInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more