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