Struct naia_shared::EntityConverterMut
source · pub struct EntityConverterMut<'a, 'b, E: Eq + Copy + Hash> { /* private fields */ }
Implementations§
source§impl<'a, 'b, E: Eq + Copy + Hash> EntityConverterMut<'a, 'b, E>
impl<'a, 'b, E: Eq + Copy + Hash> EntityConverterMut<'a, 'b, E>
pub fn new( global_world_manager: &'a dyn GlobalWorldManagerType<E>, local_world_manager: &'b mut LocalWorldManager<E> ) -> Self
Trait Implementations§
source§impl<'a, 'b, E: Copy + Eq + Hash> LocalEntityAndGlobalEntityConverter for EntityConverterMut<'a, 'b, E>
impl<'a, 'b, E: Copy + Eq + Hash> LocalEntityAndGlobalEntityConverter for EntityConverterMut<'a, 'b, E>
fn global_entity_to_host_entity( &self, global_entity: &GlobalEntity ) -> Result<HostEntity, EntityDoesNotExistError>
fn global_entity_to_remote_entity( &self, global_entity: &GlobalEntity ) -> Result<RemoteEntity, EntityDoesNotExistError>
fn global_entity_to_owned_entity( &self, global_entity: &GlobalEntity ) -> Result<OwnedLocalEntity, EntityDoesNotExistError>
fn host_entity_to_global_entity( &self, host_entity: &HostEntity ) -> Result<GlobalEntity, EntityDoesNotExistError>
fn remote_entity_to_global_entity( &self, remote_entity: &RemoteEntity ) -> Result<GlobalEntity, EntityDoesNotExistError>
source§impl<'a, 'b, E: Copy + Eq + Hash> LocalEntityAndGlobalEntityConverterMut for EntityConverterMut<'a, 'b, E>
impl<'a, 'b, E: Copy + Eq + Hash> LocalEntityAndGlobalEntityConverterMut for EntityConverterMut<'a, 'b, E>
fn get_or_reserve_entity( &mut self, global_entity: &GlobalEntity ) -> Result<OwnedLocalEntity, EntityDoesNotExistError>
Auto Trait Implementations§
impl<'a, 'b, E> !RefUnwindSafe for EntityConverterMut<'a, 'b, E>
impl<'a, 'b, E> !Send for EntityConverterMut<'a, 'b, E>
impl<'a, 'b, E> !Sync for EntityConverterMut<'a, 'b, E>
impl<'a, 'b, E> Unpin for EntityConverterMut<'a, 'b, E>
impl<'a, 'b, E> !UnwindSafe for EntityConverterMut<'a, 'b, E>
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