pub enum JointPayload {
Distance(DistanceJoint),
Filter,
Motor(MotorJoint),
Prismatic(PrismaticJoint),
Revolute(RevoluteJoint),
Weld(WeldJoint),
Wheel(WheelJoint),
}Expand description
The per-type joint payload. The C b2JointSim stores a b2JointType type
tag plus a union; the Rust port stores this tagged enum. A filter joint has
no simulation data.
Variants§
Distance(DistanceJoint)
Filter
Motor(MotorJoint)
Prismatic(PrismaticJoint)
Revolute(RevoluteJoint)
Weld(WeldJoint)
Wheel(WheelJoint)
Implementations§
Source§impl JointPayload
impl JointPayload
Sourcepub fn joint_type(&self) -> JointType
pub fn joint_type(&self) -> JointType
The joint type tag for this payload.
Trait Implementations§
Source§impl Clone for JointPayload
impl Clone for JointPayload
Source§fn clone(&self) -> JointPayload
fn clone(&self) -> JointPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JointPayload
Source§impl Debug for JointPayload
impl Debug for JointPayload
Source§impl PartialEq for JointPayload
impl PartialEq for JointPayload
impl StructuralPartialEq for JointPayload
Auto Trait Implementations§
impl Freeze for JointPayload
impl RefUnwindSafe for JointPayload
impl Send for JointPayload
impl Sync for JointPayload
impl Unpin for JointPayload
impl UnsafeUnpin for JointPayload
impl UnwindSafe for JointPayload
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