Struct physx::controller::PxBoxControllerDesc
source · #[repr(transparent)]pub struct PxBoxControllerDesc<U> { /* private fields */ }
Expand description
A new type wrapper for physx_sys::PxBoxControllerDesc
, parametrized by the user data type.
Implementations§
Trait Implementations§
source§impl<T, U> Class<T> for PxBoxControllerDesc<U>where
PxBoxControllerDesc: Class<T>,
impl<T, U> Class<T> for PxBoxControllerDesc<U>where PxBoxControllerDesc: Class<T>,
source§fn as_ptr(&self) -> *const T
fn as_ptr(&self) -> *const T
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 T
fn as_mut_ptr(&mut self) -> *mut T
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.