pub struct TileIndex(pub u32);Expand description
An identifier for different looking tiles.
The inner value refers to the index of the sprite in the tileset, starting from top-left, going row-by-row from left to right, up to down.
Tuple Fields
0: u32Trait Implementations
sourceimpl<'de> Deserialize<'de> for TileIndex
impl<'de> Deserialize<'de> for TileIndex
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for TileIndex
impl Send for TileIndex
impl Sync for TileIndex
impl Unpin for TileIndex
impl UnwindSafe for TileIndex
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more