pub struct MjAttributesElement {
pub name: String,
pub attributes: AttributeMap,
}Fields§
§name: String§attributes: AttributeMapImplementations§
Source§impl MjAttributesElement
impl MjAttributesElement
pub fn name(&self) -> &String
pub fn attributes(&self) -> &AttributeMap
Trait Implementations§
Source§impl Clone for MjAttributesElement
impl Clone for MjAttributesElement
Source§fn clone(&self) -> MjAttributesElement
fn clone(&self) -> MjAttributesElement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MjAttributesElement
impl Debug for MjAttributesElement
Source§impl Default for MjAttributesElement
impl Default for MjAttributesElement
Source§fn default() -> MjAttributesElement
fn default() -> MjAttributesElement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MjAttributesElement
impl<'de> Deserialize<'de> for MjAttributesElement
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<MjAttributesElement> for MjAttributesChild
impl From<MjAttributesElement> for MjAttributesChild
Source§fn from(v: MjAttributesElement) -> MjAttributesChild
fn from(v: MjAttributesElement) -> MjAttributesChild
Converts to this type from the input type.
Source§impl Serialize for MjAttributesElement
impl Serialize for MjAttributesElement
Auto Trait Implementations§
impl Freeze for MjAttributesElement
impl RefUnwindSafe for MjAttributesElement
impl Send for MjAttributesElement
impl Sync for MjAttributesElement
impl Unpin for MjAttributesElement
impl UnwindSafe for MjAttributesElement
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