pub struct TileLayout {
pub tile_width: u32,
pub tile_height: u32,
pub tiles_x: u32,
pub tiles_y: u32,
}Expand description
Regular tile grid layout for a compressed image.
Fields§
§tile_width: u32Width of one tile in pixels.
tile_height: u32Height of one tile in pixels.
tiles_x: u32Number of tiles across the image.
tiles_y: u32Number of tiles down the image.
Trait Implementations§
Source§impl Clone for TileLayout
impl Clone for TileLayout
Source§fn clone(&self) -> TileLayout
fn clone(&self) -> TileLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TileLayout
Source§impl Debug for TileLayout
impl Debug for TileLayout
impl Eq for TileLayout
Source§impl Hash for TileLayout
impl Hash for TileLayout
Source§impl PartialEq for TileLayout
impl PartialEq for TileLayout
Source§fn eq(&self, other: &TileLayout) -> bool
fn eq(&self, other: &TileLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TileLayout
Auto Trait Implementations§
impl Freeze for TileLayout
impl RefUnwindSafe for TileLayout
impl Send for TileLayout
impl Sync for TileLayout
impl Unpin for TileLayout
impl UnsafeUnpin for TileLayout
impl UnwindSafe for TileLayout
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