pub struct MjNumericModelInfo {
pub name: String,
pub id: usize,
/* private fields */
}
Expand description
Stores information required to create views to MjModel
arrays corresponding to a numeric.
Fields§
§name: String
§id: usize
Implementations§
Source§impl MjNumericModelInfo
impl MjNumericModelInfo
Sourcepub fn view_mut<'d>(&self, model: &'d mut MjModel) -> MjNumericModelViewMut<'d>
pub fn view_mut<'d>(&self, model: &'d mut MjModel) -> MjNumericModelViewMut<'d>
Returns a mutable view to the correct fields in MjModel
Sourcepub fn view<'d>(&self, model: &'d MjModel) -> MjNumericModelView<'d>
pub fn view<'d>(&self, model: &'d MjModel) -> MjNumericModelView<'d>
Returns a view to the correct fields in MjModel
Auto Trait Implementations§
impl Freeze for MjNumericModelInfo
impl RefUnwindSafe for MjNumericModelInfo
impl Send for MjNumericModelInfo
impl Sync for MjNumericModelInfo
impl Unpin for MjNumericModelInfo
impl UnwindSafe for MjNumericModelInfo
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