[][src]Struct physx::owner::Owner

#[repr(transparent)]pub struct Owner<T> { /* fields omitted */ }

An owning wrapper around a pointer. PhysX object creation returns pointers which in normal Rust would be a Box, but Box cannot be used here because it has specific allocation requirements that the C++ code does not fulfill.

Implementations

impl<T> Owner<T>[src]

pub fn into_ptr<S>(self) -> *mut S where
    T: Class<S>, 
[src]

Consumes the Owner without calling Drop and returns the raw pointer it was wrapping.

Trait Implementations

impl<T> AsMut<T> for Owner<T>[src]

impl<T> AsRef<T> for Owner<T>[src]

impl<T, S> Class<S> for Owner<T> where
    T: Class<S>, 
[src]

impl<T> Deref for Owner<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for Owner<T>[src]

impl<T> Drop for Owner<T>[src]

impl<T: Send> Send for Owner<T>[src]

impl<T: Sync> Sync for Owner<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Owner<T> where
    T: RefUnwindSafe
[src]

impl<T> Unpin for Owner<T>[src]

impl<T> UnwindSafe for Owner<T> where
    T: RefUnwindSafe
[src]

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> ArticulationJointBase for T where
    T: Class<PxArticulationJointBase> + Base
[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> BoxGeometry for T where
    T: Class<PxBoxGeometry> + Geometry
[src]

impl<T> CapsuleGeometry for T where
    T: Class<PxCapsuleGeometry> + Geometry
[src]

impl<T> ConvexMeshGeometry for T where
    T: Class<PxConvexMeshGeometry> + Geometry
[src]

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

impl<T> Geometry for T where
    T: Class<PxGeometry>, 
[src]

impl<T> HeightFieldGeometry for T where
    T: Class<PxHeightFieldGeometry> + Geometry
[src]

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

impl<T> PlaneGeometry for T where
    T: Class<PxPlaneGeometry> + Geometry
[src]

impl<T> SphereGeometry for T where
    T: Class<PxSphereGeometry> + Geometry
[src]

impl<T> TriangleMeshGeometry for T where
    T: Class<PxTriangleMeshGeometry> + Geometry
[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.