Skip to main content

LocalEntityAndGlobalEntityConverterMut

Trait LocalEntityAndGlobalEntityConverterMut 

Source
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§

Source

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.

Implementors§