Enum wrapped2d::serialize::JointSnapshot
source · pub enum JointSnapshot {
Revolute(RevoluteJointSnapshot),
Prismatic(PrismaticJointSnapshot),
Distance(DistanceJointSnapshot),
Pulley(PulleyJointSnapshot),
Mouse(MouseJointSnapshot),
Gear(GearJointSnapshot),
Wheel(WheelJointSnapshot),
Weld(WeldJointSnapshot),
Friction(FrictionJointSnapshot),
Rope(RopeJointSnapshot),
Motor(MotorJointSnapshot),
}
Variants§
Revolute(RevoluteJointSnapshot)
Prismatic(PrismaticJointSnapshot)
Distance(DistanceJointSnapshot)
Pulley(PulleyJointSnapshot)
Mouse(MouseJointSnapshot)
Gear(GearJointSnapshot)
Wheel(WheelJointSnapshot)
Weld(WeldJointSnapshot)
Friction(FrictionJointSnapshot)
Rope(RopeJointSnapshot)
Motor(MotorJointSnapshot)
Implementations§
source§impl JointSnapshot
impl JointSnapshot
pub fn take<U: UserDataTypes>(joint: &MetaJoint<U>) -> (JointId, Self)
pub fn rebuild<'a, U: UserDataTypes>( &'a self, world: &mut World<U>, data: U::JointData, id_to_handle: &mut IdToHandle ) -> Result<JointHandle, &'a GearJointSnapshot>
Trait Implementations§
source§impl Clone for JointSnapshot
impl Clone for JointSnapshot
source§fn clone(&self) -> JointSnapshot
fn clone(&self) -> JointSnapshot
Returns a copy 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 JointSnapshot
impl Debug for JointSnapshot
source§impl<'de> Deserialize<'de> for JointSnapshot
impl<'de> Deserialize<'de> for JointSnapshot
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
Auto Trait Implementations§
impl RefUnwindSafe for JointSnapshot
impl Send for JointSnapshot
impl Sync for JointSnapshot
impl Unpin for JointSnapshot
impl UnwindSafe for JointSnapshot
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