Skip to main content

Obj

Trait Obj 

Source
pub trait Obj: Sized + Sealed {
    const TYPE: mjtObj;

    // Required method
    fn object_id(model: &mjModel, name: &str) -> Option<ObjectId<Self>>;
}

Required Associated Constants§

Required Methods§

Source

fn object_id(model: &mjModel, name: &str) -> Option<ObjectId<Self>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Obj for Ball

Source§

const TYPE: mjtObj = super::mjtObj::JOINT

Source§

impl Obj for Free

Source§

const TYPE: mjtObj = super::mjtObj::JOINT

Source§

impl Obj for Hinge

Source§

const TYPE: mjtObj = super::mjtObj::JOINT

Source§

impl Obj for Slide

Source§

const TYPE: mjtObj = super::mjtObj::JOINT

Source§

impl Obj for Actuator

Source§

const TYPE: mjtObj = super::mjtObj::ACTUATOR

Source§

impl Obj for Body

Source§

const TYPE: mjtObj = super::mjtObj::BODY

Source§

impl Obj for Camera

Source§

const TYPE: mjtObj = super::mjtObj::CAMERA

Source§

impl Obj for Dof

Source§

const TYPE: mjtObj = super::mjtObj::DOF

Source§

impl Obj for Equality

Source§

const TYPE: mjtObj = super::mjtObj::EQUALITY

Source§

impl Obj for Exclude

Source§

const TYPE: mjtObj = super::mjtObj::EXCLUDE

Source§

impl Obj for Flex

Source§

const TYPE: mjtObj = super::mjtObj::FLEX

Source§

impl Obj for Frame

Source§

const TYPE: mjtObj = super::mjtObj::FRAME

Source§

impl Obj for Geom

Source§

const TYPE: mjtObj = super::mjtObj::GEOM

Source§

impl Obj for HField

Source§

const TYPE: mjtObj = super::mjtObj::HFIELD

Source§

impl Obj for Joint

Source§

const TYPE: mjtObj = super::mjtObj::JOINT

Source§

impl Obj for Key

Source§

const TYPE: mjtObj = super::mjtObj::KEY

Source§

impl Obj for Light

Source§

const TYPE: mjtObj = super::mjtObj::LIGHT

Source§

impl Obj for Material

Source§

const TYPE: mjtObj = super::mjtObj::MATERIAL

Source§

impl Obj for Mesh

Source§

const TYPE: mjtObj = super::mjtObj::MESH

Source§

impl Obj for Numeric

Source§

const TYPE: mjtObj = super::mjtObj::NUMERIC

Source§

impl Obj for Pair

Source§

const TYPE: mjtObj = super::mjtObj::PAIR

Source§

impl Obj for Plugin

Source§

const TYPE: mjtObj = super::mjtObj::PLUGIN

Source§

impl Obj for Sensor

Source§

const TYPE: mjtObj = super::mjtObj::SENSOR

Source§

impl Obj for Site

Source§

const TYPE: mjtObj = super::mjtObj::SITE

Source§

impl Obj for Skin

Source§

const TYPE: mjtObj = super::mjtObj::SKIN

Source§

impl Obj for Tendon

Source§

const TYPE: mjtObj = super::mjtObj::TENDON

Source§

impl Obj for Text

Source§

const TYPE: mjtObj = super::mjtObj::TEXT

Source§

impl Obj for Texture

Source§

const TYPE: mjtObj = super::mjtObj::TEXTURE

Source§

impl Obj for Tuple

Source§

const TYPE: mjtObj = super::mjtObj::TUPLE

Source§

impl Obj for Unknown

Source§

const TYPE: mjtObj = super::mjtObj::UNKNOWN

Source§

impl Obj for XBody

Source§

const TYPE: mjtObj = super::mjtObj::XBODY