pub trait LocalEntityAndGlobalEntityConverterMut: LocalEntityAndGlobalEntityConverter {
// Required method
fn get_or_reserve_entity(
&mut self,
global_entity: &GlobalEntity,
) -> Result<OwnedLocalEntity, EntityDoesNotExistError>;
}Expand description
Mutable extension of LocalEntityAndGlobalEntityConverter that can allocate new host-side entity slots.
Required Methods§
Sourcefn get_or_reserve_entity(
&mut self,
global_entity: &GlobalEntity,
) -> Result<OwnedLocalEntity, EntityDoesNotExistError>
fn get_or_reserve_entity( &mut self, global_entity: &GlobalEntity, ) -> Result<OwnedLocalEntity, EntityDoesNotExistError>
Looks up the local entity for global_entity, reserving a new host slot if none exists yet.