pub struct PxControllerManager<C>where
C: Controller,{ /* private fields */ }Trait Implementations§
Source§impl<T, C> Class<T> for PxControllerManager<C>
impl<T, C> Class<T> for PxControllerManager<C>
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.
Source§impl<C: Controller> ControllerManager for PxControllerManager<C>
impl<C: Controller> ControllerManager for PxControllerManager<C>
type Controller = C
Source§fn 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.
Source§fn get_nb_controllers(&self) -> u32
fn get_nb_controllers(&self) -> u32
Get the number of controllers currently being managed.
Source§fn 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
NoneSource§fn 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.
Source§impl<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> Freeze for PxControllerManager<C>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more