pub trait EntityAndGlobalEntityConverter<E: Copy + Eq + Hash> {
    // Required methods
    fn global_entity_to_entity(
        &self,
        global_entity: &GlobalEntity
    ) -> Result<E, EntityDoesNotExistError>;
    fn entity_to_global_entity(
        &self,
        entity: &E
    ) -> Result<GlobalEntity, EntityDoesNotExistError>;
}

Required Methods§

Implementors§