Struct physx::triangle_mesh::TriangleMesh
source · #[repr(transparent)]pub struct TriangleMesh { /* private fields */ }
Implementations§
source§impl TriangleMesh
impl TriangleMesh
sourcepub unsafe fn from_raw(ptr: *mut PxTriangleMesh) -> Option<Owner<TriangleMesh>>
pub unsafe fn from_raw(ptr: *mut PxTriangleMesh) -> Option<Owner<TriangleMesh>>
Safety
Owner’s own the pointer they wrap, using the pointer after dropping the Owner,
or creating multiple Owners from the same pointer will cause UB. Use into_ptr
to
retrieve the pointer and consume the Owner without dropping the pointee.
Trait Implementations§
source§impl Class<PxBase> for TriangleMesh
impl Class<PxBase> for TriangleMesh
source§fn as_ptr(&self) -> *const PxBase
fn as_ptr(&self) -> *const PxBase
Returns a raw const pointer to the wrapped type.
Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe.
In particular: this pointer should not be used to construct a second owning wrapper around the pointer.
source§fn as_mut_ptr(&mut self) -> *mut PxBase
fn as_mut_ptr(&mut self) -> *mut PxBase
Returns a raw mut pointer to the wrapped type.
Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe.
In particular: this pointer should not be used to construct a second owning wrapper around the pointer.
source§impl Class<PxTriangleMesh> for TriangleMesh
impl Class<PxTriangleMesh> for TriangleMesh
source§fn as_ptr(&self) -> *const PxTriangleMesh
fn as_ptr(&self) -> *const PxTriangleMesh
Returns a raw const pointer to the wrapped type.
Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe.
In particular: this pointer should not be used to construct a second owning wrapper around the pointer.
source§fn as_mut_ptr(&mut self) -> *mut PxTriangleMesh
fn as_mut_ptr(&mut self) -> *mut PxTriangleMesh
Returns a raw mut pointer to the wrapped type.
Retrieving a raw pointer is safe. However, pretty much any use of a raw pointer is unsafe.
In particular: this pointer should not be used to construct a second owning wrapper around the pointer.
source§impl Drop for TriangleMesh
impl Drop for TriangleMesh
impl Send for TriangleMesh
impl Sync for TriangleMesh
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Base for Twhere
T: Class<PxBase>,
impl<T> Base for Twhere T: Class<PxBase>,
source§fn get_concrete_type_name(&self) -> Option<&str>
fn get_concrete_type_name(&self) -> Option<&str>
Get the name of the real type referenced by this pointer, or None if the returned string is not valid
source§fn get_concrete_type(&self) -> ConcreteType
fn get_concrete_type(&self) -> ConcreteType
Returns an enumerated value identifying the type. Read more
source§fn set_base_flag(&mut self, flag: BaseFlag, value: bool)
fn set_base_flag(&mut self, flag: BaseFlag, value: bool)
Set or unset the specified flag on this object.
source§fn set_base_flags(&mut self, in_flags: BaseFlags)
fn set_base_flags(&mut self, in_flags: BaseFlags)
Set the BaseFlags of this object. Note that replaces all flags currently
on the object. Use
set_base_flag
to set individual flags.source§fn get_base_flags(&self) -> BaseFlags
fn get_base_flags(&self) -> BaseFlags
Read the BaseFlags of this object
source§fn is_releasable(&self) -> bool
fn is_releasable(&self) -> bool
Returns true if this object can be released, i.e., it is not subordinate.