Struct physx::rigid_body::RigidBodyMap[][src]

#[repr(transparent)]pub struct RigidBodyMap<L, D> where
    L: ArticulationLink,
    D: RigidDynamic
{ /* fields omitted */ }

A wrapper for RigidBody, parametrized by the ArticulationLink and RigidDynamic that may be it's most derived type. Use cast_map or as_* to cast to it's most derived type if specialized functionality is needed.

Implementations

impl<L, D> RigidBodyMap<L, D> where
    L: ArticulationLink,
    D: RigidDynamic
[src]

pub fn cast_map<'a, Ret, RDFn, ALFn>(
    &'a mut self,
    rigid_dynamic_fn: RDFn,
    articulation_link_fn: ALFn
) -> Ret where
    RDFn: FnMut(&'a mut D) -> Ret,
    ALFn: FnMut(&'a mut L) -> Ret, 
[src]

Cast to the most-derived type as determined by get_type, which returns the ActorType. Because this does not use get_concrete_type, this method does not have the safety concerns of the other cast_maps, and a try_cast_map method is unneded.

pub fn as_rigid_dynamic(&mut self) -> Option<&mut D>[src]

Tries to cast to RigidDynamic.

Tries to cast to ArticulationLink.

Trait Implementations

impl<P, L, D> Class<P> for RigidBodyMap<L, D> where
    PxRigidBody: Class<P>,
    L: ArticulationLink,
    D: RigidDynamic
[src]

Auto Trait Implementations

impl<L, D> RefUnwindSafe for RigidBodyMap<L, D> where
    D: RefUnwindSafe,
    L: RefUnwindSafe

impl<L, D> !Send for RigidBodyMap<L, D>

impl<L, D> !Sync for RigidBodyMap<L, D>

impl<L, D> Unpin for RigidBodyMap<L, D> where
    D: Unpin,
    L: Unpin

impl<L, D> UnwindSafe for RigidBodyMap<L, D> where
    D: UnwindSafe,
    L: UnwindSafe

Blanket Implementations

impl<T> Actor for T where
    T: Class<PxActor> + Base
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Base for T where
    T: Class<PxBase>, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.