pub struct TileParams {
pub width: u16,
pub height: u16,
pub tile_w: u16,
pub tile_h: u16,
pub tiles_x: usize,
pub tiles_y: usize,
}Expand description
Tile parameters derived from the current buffer dimensions.
Fields§
§width: u16§height: u16§tile_w: u16§tile_h: u16§tiles_x: usize§tiles_y: usizeImplementations§
Source§impl TileParams
impl TileParams
pub fn total_tiles(self) -> usize
pub fn total_cells(self) -> usize
Trait Implementations§
Source§impl Clone for TileParams
impl Clone for TileParams
Source§fn clone(&self) -> TileParams
fn clone(&self) -> TileParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TileParams
impl Debug for TileParams
impl Copy for TileParams
Auto Trait Implementations§
impl Freeze for TileParams
impl RefUnwindSafe for TileParams
impl Send for TileParams
impl Sync for TileParams
impl Unpin for TileParams
impl UnsafeUnpin for TileParams
impl UnwindSafe for TileParams
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