pub fn entities_in_chunk_and_modified(&self, chunk: ChunkPosition) -> (bool, &[Entity]) {
        if let Some((dirty, entities)) = self.0.get(&chunk) {
            let d = dirty.load(Ordering::SeqCst);
            dirty.store(false, Ordering::SeqCst);
            (d, entities)
        } else {
            (false, &[])
        }
    }
/// Returns all entities in the chunk, in addition to
/// a boolean indicating whether the entities have been
/// updated since the last call to this function.
Returns all entities in the chunk, in addition to
a boolean indicating whether the entities have been
updated since the last call to this function.
Returns all entities in the chunk in addition to a boolean indicating whether the entities have been updated since the last call to this function .
pub fn entities_in_chunk_and_modified(&self, chunk: ChunkPosition) -> (bool, &[Entity]) {
        if let Some((dirty, entities)) = self.0.get(&chunk) {
            let d = dirty.load(Ordering::SeqCst);
            dirty.store(false, Ordering::SeqCst);
            (d, entities)
        } else {
            (false, &[])
        }
    }
pub fn entities_in_chunk_and_modified ( & self , chunk : ChunkPosition ) -> ( bool , & [ Entity ] ) { if let Some ( ( dirty , entities ) ) = self . 0 . get ( & chunk ) { let d = dirty . load ( Ordering :: SeqCst ) ; dirty . store ( false , Ordering :: SeqCst ) ; ( d , entities ) } else { ( false , & [ ] ) } }
Returns all entities in the chunk, in addition to
a boolean indicating whether the entities have been
updated since the last call to this function.
Returns all entities in the chunk in addition to a boolean indicating whether the entities have been updated since the last call to this function .
&self
chunk
ChunkPosition
&self
chunk
ChunkPosition