pub struct TileRunBatch { /* private fields */ }Expand description
Merged horizontal run of contiguous same-color tiles within a cached static TileMap chunk.
Implementations§
Source§impl TileRunBatch
impl TileRunBatch
pub fn get_col(&self) -> usize
pub fn get_mut_col(&mut self) -> &mut usize
pub fn set_col(&mut self, val: usize) -> &mut Self
pub fn get_row(&self) -> usize
pub fn get_mut_row(&mut self) -> &mut usize
pub fn set_row(&mut self, val: usize) -> &mut Self
pub fn get_span_cols(&self) -> usize
pub fn get_mut_span_cols(&mut self) -> &mut usize
pub fn set_span_cols(&mut self, val: usize) -> &mut Self
pub fn get_color(&self) -> Color
pub fn get_mut_color(&mut self) -> &mut Color
pub fn set_color(&mut self, val: Color) -> &mut Self
Trait Implementations§
Source§impl Clone for TileRunBatch
impl Clone for TileRunBatch
impl Copy for TileRunBatch
Source§impl Debug for TileRunBatch
impl Debug for TileRunBatch
Source§impl PartialEq for TileRunBatch
impl PartialEq for TileRunBatch
impl StructuralPartialEq for TileRunBatch
Auto Trait Implementations§
impl Forget for TileRunBatch
impl Freeze for TileRunBatch
impl Move for TileRunBatch
impl RefUnwindSafe for TileRunBatch
impl Send for TileRunBatch
impl Sync for TileRunBatch
impl Unpin for TileRunBatch
impl UnsafeUnpin for TileRunBatch
impl UnwindSafe for TileRunBatch
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