pub(crate) fn remove_entity(&mut self, entity: Entity) -> Option<IndexEntity> {
        self.pages
            .get_mut(page_index(entity))
            .and_then(Option::as_mut)
            .map(|page| &mut page[local_index(entity)])
            .filter(|e| e.map(|e| e.version()) == Some(entity.version()))?
            .take()
    }
/// Removes `entity` from the array and returns the `index` mapped to it.
Removes `entity` from the array and returns the `index` mapped to it.
Removes ` entity ` from the array and returns the ` index ` mapped to it .
pub(crate) fn remove_entity(&mut self, entity: Entity) -> Option<IndexEntity> {
        self.pages
            .get_mut(page_index(entity))
            .and_then(Option::as_mut)
            .map(|page| &mut page[local_index(entity)])
            .filter(|e| e.map(|e| e.version()) == Some(entity.version()))?
            .take()
    }
pub ( crate ) fn remove_entity ( & mut self , entity : Entity ) -> Option < IndexEntity > { self . pages . get_mut ( page_index ( entity ) ) . and_then ( Option :: as_mut ) . map ( | page | & mut page [ local_index ( entity ) ] ) . filter ( | e | e . map ( | e | e . version ( ) ) == Some ( entity . version ( ) ) ) ? . take ( ) }
Removes `entity` from the array and returns the `index` mapped to it.
Removes ` entity ` from the array and returns the ` index ` mapped to it .
&mut self
entity
Entity
&mut self
entity
Entity