pub struct TileSpot {
pub key: String,
pub columns: u16,
pub rows: u16,
}Expand description
Where a tile stands: which tile, and how many cells it takes. The order of a list of these is the order on the screen.
Fields§
§key: StringThe tile, by Tile::new’s key.
columns: u16Columns it takes.
rows: u16Rows it takes.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TileSpot
impl<'de> Deserialize<'de> for TileSpot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TileSpot
impl StructuralPartialEq for TileSpot
Auto Trait Implementations§
impl Freeze for TileSpot
impl RefUnwindSafe for TileSpot
impl Send for TileSpot
impl Sync for TileSpot
impl Unpin for TileSpot
impl UnsafeUnpin for TileSpot
impl UnwindSafe for TileSpot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more