pub struct TilesetInfo {
pub image: String,
pub cols: usize,
pub rows: usize,
pub tile_width: Scalar,
pub tile_height: Scalar,
pub padding_col: Scalar,
pub padding_row: Scalar,
pub margin_col: Scalar,
pub margin_row: Scalar,
}
Fields§
§image: String
§cols: usize
§rows: usize
§tile_width: Scalar
§tile_height: Scalar
§padding_col: Scalar
§padding_row: Scalar
§margin_col: Scalar
§margin_row: Scalar
Implementations§
Trait Implementations§
Source§impl Clone for TilesetInfo
impl Clone for TilesetInfo
Source§fn clone(&self) -> TilesetInfo
fn clone(&self) -> TilesetInfo
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 TilesetInfo
impl Debug for TilesetInfo
Source§impl<'de> Deserialize<'de> for TilesetInfo
impl<'de> Deserialize<'de> for TilesetInfo
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
Auto Trait Implementations§
impl Freeze for TilesetInfo
impl RefUnwindSafe for TilesetInfo
impl Send for TilesetInfo
impl Sync for TilesetInfo
impl Unpin for TilesetInfo
impl UnwindSafe for TilesetInfo
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more