Struct physx::controller_manager::PxControllerManager
source · [−]#[repr(transparent)]pub struct PxControllerManager<C> where
C: Controller, { /* private fields */ }
Trait Implementations
sourceimpl<T, C> Class<T> for PxControllerManager<C> where
PxControllerManager: Class<T>,
C: Controller,
impl<T, C> Class<T> for PxControllerManager<C> where
PxControllerManager: Class<T>,
C: Controller,
sourcefn 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. Read more
sourcefn 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. Read more
sourceimpl<C: Controller> ControllerManager for PxControllerManager<C>
impl<C: Controller> ControllerManager for PxControllerManager<C>
type Controller = C
sourcefn create_controller(
&mut self,
desc: Owner<<Self::Controller as Controller>::Descriptor>
) -> Option<&mut Self::Controller>
fn create_controller(
&mut self,
desc: Owner<<Self::Controller as Controller>::Descriptor>
) -> Option<&mut Self::Controller>
Create a controller.
sourcefn get_nb_controllers(&self) -> u32
fn get_nb_controllers(&self) -> u32
Get the number of controllers currently being managed.
sourcefn get_controller(&mut self, idx: u32) -> Option<&mut Self::Controller>
fn get_controller(&mut self, idx: u32) -> Option<&mut Self::Controller>
Get a controller by index. Returns None
sourcefn get_controllers(&mut self) -> Vec<&mut Self::Controller>
fn get_controllers(&mut self) -> Vec<&mut Self::Controller>
Get a Vec of all the controllers being managed.
sourceimpl<C: Controller> Drop for PxControllerManager<C>
impl<C: Controller> Drop for PxControllerManager<C>
impl<C: Controller + Send> Send for PxControllerManager<C>
impl<C: Controller + Sync> Sync for PxControllerManager<C>
Auto Trait Implementations
impl<C> RefUnwindSafe for PxControllerManager<C> where
C: RefUnwindSafe,
impl<C> Unpin for PxControllerManager<C> where
C: Unpin,
impl<C> UnwindSafe for PxControllerManager<C> where
C: UnwindSafe,
Blanket Implementations
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