pub struct MjBodyDataView<'d> {Show 16 fields
pub xfrc_applied: PointerView<'d, MjtNum>,
pub xpos: PointerView<'d, MjtNum>,
pub xquat: PointerView<'d, MjtNum>,
pub xmat: PointerView<'d, MjtNum>,
pub xipos: PointerView<'d, MjtNum>,
pub ximat: PointerView<'d, MjtNum>,
pub subtree_com: PointerView<'d, MjtNum>,
pub cinert: PointerView<'d, MjtNum>,
pub crb: PointerView<'d, MjtNum>,
pub cvel: PointerView<'d, MjtNum>,
pub subtree_linvel: PointerView<'d, MjtNum>,
pub subtree_angmom: PointerView<'d, MjtNum>,
pub cacc: PointerView<'d, MjtNum>,
pub cfrc_int: PointerView<'d, MjtNum>,
pub cfrc_ext: PointerView<'d, MjtNum>,
pub awake: PointerView<'d, MjtSleepState>,
}Expand description
Immutable view into MjData arrays for a body.
Fields§
§xfrc_applied: PointerView<'d, MjtNum>View of xfrc_applied.
xpos: PointerView<'d, MjtNum>View of xpos.
xquat: PointerView<'d, MjtNum>View of xquat.
xmat: PointerView<'d, MjtNum>View of xmat.
xipos: PointerView<'d, MjtNum>View of xipos.
ximat: PointerView<'d, MjtNum>View of ximat.
subtree_com: PointerView<'d, MjtNum>View of subtree_com.
cinert: PointerView<'d, MjtNum>View of cinert.
crb: PointerView<'d, MjtNum>View of crb.
cvel: PointerView<'d, MjtNum>View of cvel.
subtree_linvel: PointerView<'d, MjtNum>View of subtree_linvel.
subtree_angmom: PointerView<'d, MjtNum>View of subtree_angmom.
cacc: PointerView<'d, MjtNum>View of cacc.
cfrc_int: PointerView<'d, MjtNum>View of cfrc_int.
cfrc_ext: PointerView<'d, MjtNum>View of cfrc_ext.
awake: PointerView<'d, MjtSleepState>View of awake.
Trait Implementations§
Auto Trait Implementations§
impl<'d> !Send for MjBodyDataView<'d>
impl<'d> !Sync for MjBodyDataView<'d>
impl<'d> Freeze for MjBodyDataView<'d>
impl<'d> RefUnwindSafe for MjBodyDataView<'d>
impl<'d> Unpin for MjBodyDataView<'d>
impl<'d> UnsafeUnpin for MjBodyDataView<'d>
impl<'d> UnwindSafe for MjBodyDataView<'d>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.