Struct physx::convex_mesh::ConvexMesh
source · [−]#[repr(transparent)]pub struct ConvexMesh { /* private fields */ }
Implementations
sourceimpl ConvexMesh
impl ConvexMesh
sourcepub unsafe fn from_raw(ptr: *mut PxConvexMesh) -> Option<Owner<ConvexMesh>>
pub unsafe fn from_raw(ptr: *mut PxConvexMesh) -> Option<Owner<ConvexMesh>>
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
sourceimpl Class<PxBase> for ConvexMesh
impl Class<PxBase> for ConvexMesh
sourcefn 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. Read more
sourcefn 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. Read more
sourceimpl Class<PxConvexMesh> for ConvexMesh
impl Class<PxConvexMesh> for ConvexMesh
sourcefn as_ptr(&self) -> *const PxConvexMesh
fn as_ptr(&self) -> *const PxConvexMesh
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. Read more
sourcefn as_mut_ptr(&mut self) -> *mut PxConvexMesh
fn as_mut_ptr(&mut self) -> *mut PxConvexMesh
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. Read more
sourceimpl Drop for ConvexMesh
impl Drop for ConvexMesh
impl Send for ConvexMesh
impl Sync for ConvexMesh
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> Base for T where
T: Class<PxBase>,
impl<T> Base for T where
T: Class<PxBase>,
sourcefn 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
sourcefn get_concrete_type(&self) -> ConcreteType
fn get_concrete_type(&self) -> ConcreteType
Returns an enumerated value identifying the type. This may return ConcreteType::Undefined
in surprising situations, notably this does not seem to work with get_active_actors
. Use
get_type
for actors if possible. Read more
sourcefn 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.
sourcefn set_base_flags(&mut self, in_flags: BitFlags<BaseFlag>)
fn set_base_flags(&mut self, in_flags: BitFlags<BaseFlag>)
Set the BaseFlags of this object. Note that replaces all flags currently
on the object. Use set_base_flag
to set individual flags. Read more
sourcefn get_base_flags(&self) -> BitFlags<BaseFlag>
fn get_base_flags(&self) -> BitFlags<BaseFlag>
Read the BaseFlags of this object
sourcefn is_releasable(&self) -> bool
fn is_releasable(&self) -> bool
Returns true if this object can be released, i.e., it is not subordinate.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more