Struct physx::owner::Owner [−][src]
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]
T: Class<S>,
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]
T: Class<S>,
impl<T> Deref for Owner<T>
[src]
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,
T: RefUnwindSafe,
impl<T> Unpin for Owner<T>
impl<T> UnwindSafe for Owner<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Actor for T where
T: Class<PxActor> + Base,
[src]
T: Class<PxActor> + Base,
fn get_type(&self) -> ActorType
[src]
fn get_world_bounds(&self, inflation: f32) -> PxBounds3
[src]
fn set_actor_flag(&mut self, flag: ActorFlag, value: bool)
[src]
fn set_actor_flags(&mut self, flags: BitFlags<ActorFlag>)
[src]
fn get_actor_flags(&self) -> BitFlags<ActorFlag>
[src]
fn set_dominance_group(&mut self, group: u8)
[src]
fn get_dominance_group(&self) -> u8
[src]
fn set_owner_client(&mut self, client: u8)
[src]
fn get_owner_client(&self) -> u8
[src]
fn enable_visualization(&mut self, enable: bool)
[src]
fn enable_gravity(&mut self, enable: bool)
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ArticulationJointBase for T where
T: Class<PxArticulationJointBase> + Base,
[src]
T: Class<PxArticulationJointBase> + Base,
fn set_child_pose(&mut self, pose: &PxTransform)
[src]
fn get_child_pose(&self) -> PxTransform
[src]
fn set_parent_pose(&mut self, pose: &PxTransform)
[src]
fn get_parent_pose(&self) -> PxTransform
[src]
fn get_joint_transform_global(&self) -> PxTransform
[src]
impl<T> Base for T where
T: Class<PxBase>,
[src]
T: Class<PxBase>,
fn get_concrete_type_name(&self) -> Option<&str>
[src]
fn get_concrete_type(&self) -> ConcreteType
[src]
fn set_base_flag(&mut self, flag: BaseFlag, value: bool)
[src]
fn set_base_flags(&mut self, in_flags: BitFlags<BaseFlag>)
[src]
fn get_base_flags(&self) -> BitFlags<BaseFlag>
[src]
fn is_releasable(&self) -> bool
[src]
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> BoxGeometry for T where
T: Class<PxBoxGeometry> + Geometry,
[src]
T: Class<PxBoxGeometry> + Geometry,
fn new(half_x: f32, half_y: f32, half_z: f32) -> PxBoxGeometry
[src]
fn default() -> PxBoxGeometry
[src]
fn is_valid(&self) -> bool
[src]
impl<T> CapsuleGeometry for T where
T: Class<PxCapsuleGeometry> + Geometry,
[src]
T: Class<PxCapsuleGeometry> + Geometry,
fn new(radius: f32, half_height: f32) -> PxCapsuleGeometry
[src]
fn default() -> PxCapsuleGeometry
[src]
fn is_valid(&self) -> bool
[src]
impl<T> ConvexMeshGeometry for T where
T: Class<PxConvexMeshGeometry> + Geometry,
[src]
T: Class<PxConvexMeshGeometry> + Geometry,
fn new(
mesh: &mut ConvexMesh,
scaling: &impl Class<PxMeshScale>,
flags: PxConvexMeshGeometryFlags
) -> PxConvexMeshGeometry
[src]
mesh: &mut ConvexMesh,
scaling: &impl Class<PxMeshScale>,
flags: PxConvexMeshGeometryFlags
) -> PxConvexMeshGeometry
fn default() -> PxConvexMeshGeometry
[src]
fn is_valid(&self) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Geometry for T where
T: Class<PxGeometry>,
[src]
T: Class<PxGeometry>,
fn get_type(&self) -> GeometryType
[src]
impl<T> HeightFieldGeometry for T where
T: Class<PxHeightFieldGeometry> + Geometry,
[src]
T: Class<PxHeightFieldGeometry> + Geometry,
fn new(
height_field: &mut HeightField,
flags: PxMeshGeometryFlags,
height_scale: f32,
row_scale: f32,
column_scale: f32
) -> PxHeightFieldGeometry
[src]
height_field: &mut HeightField,
flags: PxMeshGeometryFlags,
height_scale: f32,
row_scale: f32,
column_scale: f32
) -> PxHeightFieldGeometry
fn default() -> PxHeightFieldGeometry
[src]
fn is_valid(&self) -> bool
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> PlaneGeometry for T where
T: Class<PxPlaneGeometry> + Geometry,
[src]
T: Class<PxPlaneGeometry> + Geometry,
impl<T> SphereGeometry for T where
T: Class<PxSphereGeometry> + Geometry,
[src]
T: Class<PxSphereGeometry> + Geometry,
fn new(radius: f32) -> PxSphereGeometry
[src]
fn default() -> PxSphereGeometry
[src]
fn is_valid(&self) -> bool
[src]
impl<T> TriangleMeshGeometry for T where
T: Class<PxTriangleMeshGeometry> + Geometry,
[src]
T: Class<PxTriangleMeshGeometry> + Geometry,
fn new(
mesh: &mut TriangleMesh,
scaling: &impl Class<PxMeshScale>,
flags: PxMeshGeometryFlags
) -> PxTriangleMeshGeometry
[src]
mesh: &mut TriangleMesh,
scaling: &impl Class<PxMeshScale>,
flags: PxMeshGeometryFlags
) -> PxTriangleMeshGeometry
fn default() -> PxTriangleMeshGeometry
[src]
fn is_valid(&self) -> bool
[src]
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>,