Struct memory_management::world::chunks::ChunkHolder
source · pub struct ChunkHolder { /* private fields */ }Expand description
Struct that hold all chunkdata
Implementations§
source§impl ChunkHolder
impl ChunkHolder
sourcepub fn count_uncompressed(&self) -> Result<usize, ()>
pub fn count_uncompressed(&self) -> Result<usize, ()>
returns the amount of uncompressed chunks that are being handled
sourcepub fn cache_region(
&mut self,
x: u8,
y: u8,
r_x: i64,
r_y: i64
) -> Result<Rc<ChunkData>, (i64, i64)>
pub fn cache_region( &mut self, x: u8, y: u8, r_x: i64, r_y: i64 ) -> Result<Rc<ChunkData>, (i64, i64)>
sourcepub fn get_from_region(
&mut self,
x: u8,
y: u8,
r_x: i64,
r_y: i64
) -> Result<Rc<ChunkData>, (i64, i64)>
pub fn get_from_region( &mut self, x: u8, y: u8, r_x: i64, r_y: i64 ) -> Result<Rc<ChunkData>, (i64, i64)>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ChunkHolder
impl RefUnwindSafe for ChunkHolder
impl !Send for ChunkHolder
impl !Sync for ChunkHolder
impl Unpin for ChunkHolder
impl UnwindSafe for ChunkHolder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more