pub struct mjsExclude_ { /* private fields */ }Implementations§
Source§impl mjsExclude_
impl mjsExclude_
Source§impl mjsExclude_
impl mjsExclude_
Sourcepub fn bodyname1(&self) -> &str
pub fn bodyname1(&self) -> &str
Return name of body 1.
§Panics
Panics if the stored string is not valid UTF-8, which can only happen on internal memory corruption – MuJoCo only uses ASCII values.
Sourcepub fn set_bodyname1(&mut self, value: &str)
pub fn set_bodyname1(&mut self, value: &str)
Sourcepub fn with_bodyname1(&mut self, value: &str) -> &mut Self
pub fn with_bodyname1(&mut self, value: &str) -> &mut Self
Builder method for setting name of body 1.
§Panics
When the value contains ‘\0’ characters, a panic occurs.
Sourcepub fn bodyname2(&self) -> &str
pub fn bodyname2(&self) -> &str
Return name of body 2.
§Panics
Panics if the stored string is not valid UTF-8, which can only happen on internal memory corruption – MuJoCo only uses ASCII values.
Sourcepub fn set_bodyname2(&mut self, value: &str)
pub fn set_bodyname2(&mut self, value: &str)
Sourcepub fn with_bodyname2(&mut self, value: &str) -> &mut Self
pub fn with_bodyname2(&mut self, value: &str) -> &mut Self
Builder method for setting name of body 2.
§Panics
When the value contains ‘\0’ characters, a panic occurs.
Trait Implementations§
Auto Trait Implementations§
impl !Send for mjsExclude_
impl !Sync for mjsExclude_
impl Freeze for mjsExclude_
impl RefUnwindSafe for mjsExclude_
impl Unpin for mjsExclude_
impl UnsafeUnpin for mjsExclude_
impl UnwindSafe for mjsExclude_
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.