Struct physx::simulation_event_callback::PxSimulationEventCallback [−][src]
A new type wrapper for PxSimulationEventCallback. Parametrized by the ArticulationLink, RigidStatic, and RigidDynamic actors the callbacks expect, and the Collision, Trigger, ConstraintBreak, WakeSleep, and Advance Callbacks themselves.
Implementations
impl<L, S, D, OC, OT, OCB, OWS, OA> PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA> where
L: ArticulationLink,
S: RigidStatic,
D: RigidDynamic,
OC: CollisionCallback,
OT: TriggerCallback,
OCB: ConstraintBreakCallback,
OWS: WakeSleepCallback<L, S, D>,
OA: AdvanceCallback<L, D>,
[src]
L: ArticulationLink,
S: RigidStatic,
D: RigidDynamic,
OC: CollisionCallback,
OT: TriggerCallback,
OCB: ConstraintBreakCallback,
OWS: WakeSleepCallback<L, S, D>,
OA: AdvanceCallback<L, D>,
pub fn new(
on_collide: Option<OC>,
on_trigger: Option<OT>,
on_constraint_break: Option<OCB>,
on_wake_sleep: Option<OWS>,
on_advance: Option<OA>
) -> Option<Owner<PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA>>> where
L: ArticulationLink,
S: RigidStatic,
D: RigidDynamic,
OC: CollisionCallback,
OT: TriggerCallback,
OCB: ConstraintBreakCallback,
OWS: WakeSleepCallback<L, S, D>,
OA: AdvanceCallback<L, D>,
[src]
on_collide: Option<OC>,
on_trigger: Option<OT>,
on_constraint_break: Option<OCB>,
on_wake_sleep: Option<OWS>,
on_advance: Option<OA>
) -> Option<Owner<PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA>>> where
L: ArticulationLink,
S: RigidStatic,
D: RigidDynamic,
OC: CollisionCallback,
OT: TriggerCallback,
OCB: ConstraintBreakCallback,
OWS: WakeSleepCallback<L, S, D>,
OA: AdvanceCallback<L, D>,
Create a new simulation event callback.
Trait Implementations
impl<L, S, D, OC, OT, OCB, OWS, OA> Class<PxSimulationEventCallback> for PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA> where
L: ArticulationLink,
S: RigidStatic,
D: RigidDynamic,
OC: CollisionCallback,
OT: TriggerCallback,
OCB: ConstraintBreakCallback,
OWS: WakeSleepCallback<L, S, D>,
OA: AdvanceCallback<L, D>,
[src]
L: ArticulationLink,
S: RigidStatic,
D: RigidDynamic,
OC: CollisionCallback,
OT: TriggerCallback,
OCB: ConstraintBreakCallback,
OWS: WakeSleepCallback<L, S, D>,
OA: AdvanceCallback<L, D>,
fn as_ptr(&self) -> *const PxSimulationEventCallback
[src]
fn as_mut_ptr(&mut self) -> *mut PxSimulationEventCallback
[src]
impl<L, S, D, OC, OT, OCB, OWS, OA> Drop for PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA> where
L: ArticulationLink,
S: RigidStatic,
D: RigidDynamic,
OC: CollisionCallback,
OT: TriggerCallback,
OCB: ConstraintBreakCallback,
OWS: WakeSleepCallback<L, S, D>,
OA: AdvanceCallback<L, D>,
[src]
L: ArticulationLink,
S: RigidStatic,
D: RigidDynamic,
OC: CollisionCallback,
OT: TriggerCallback,
OCB: ConstraintBreakCallback,
OWS: WakeSleepCallback<L, S, D>,
OA: AdvanceCallback<L, D>,
Auto Trait Implementations
impl<L, S, D, OC, OT, OCB, OWS, OA> RefUnwindSafe for PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA> where
D: RefUnwindSafe,
L: RefUnwindSafe,
OA: RefUnwindSafe,
OC: RefUnwindSafe,
OCB: RefUnwindSafe,
OT: RefUnwindSafe,
OWS: RefUnwindSafe,
S: RefUnwindSafe,
D: RefUnwindSafe,
L: RefUnwindSafe,
OA: RefUnwindSafe,
OC: RefUnwindSafe,
OCB: RefUnwindSafe,
OT: RefUnwindSafe,
OWS: RefUnwindSafe,
S: RefUnwindSafe,
impl<L, S, D, OC, OT, OCB, OWS, OA> !Send for PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA>
impl<L, S, D, OC, OT, OCB, OWS, OA> !Sync for PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA>
impl<L, S, D, OC, OT, OCB, OWS, OA> Unpin for PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA> where
OA: Unpin,
OC: Unpin,
OCB: Unpin,
OT: Unpin,
OWS: Unpin,
OA: Unpin,
OC: Unpin,
OCB: Unpin,
OT: Unpin,
OWS: Unpin,
impl<L, S, D, OC, OT, OCB, OWS, OA> UnwindSafe for PxSimulationEventCallback<L, S, D, OC, OT, OCB, OWS, OA> where
D: RefUnwindSafe,
L: RefUnwindSafe,
OA: UnwindSafe,
OC: UnwindSafe,
OCB: UnwindSafe,
OT: UnwindSafe,
OWS: UnwindSafe,
S: RefUnwindSafe,
D: RefUnwindSafe,
L: RefUnwindSafe,
OA: UnwindSafe,
OC: UnwindSafe,
OCB: UnwindSafe,
OT: UnwindSafe,
OWS: UnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,