pub struct TileGrid<'a, V> {
pub name: String,
pub size: u32,
pub data: &'a Vec<V>,
}Expand description
An export of the data as a grid
Fields§
§name: Stringname of the layer
size: u32size of the grid including the buffer
data: &'a Vec<V>flattened array of number or RGBA.
The size of the array is grid_size * grid_size
Access the position as grid_size * y + x
Trait Implementations§
Auto Trait Implementations§
impl<'a, V> Freeze for TileGrid<'a, V>
impl<'a, V> RefUnwindSafe for TileGrid<'a, V>where
V: RefUnwindSafe,
impl<'a, V> Send for TileGrid<'a, V>where
V: Sync,
impl<'a, V> Sync for TileGrid<'a, V>where
V: Sync,
impl<'a, V> Unpin for TileGrid<'a, V>
impl<'a, V> UnwindSafe for TileGrid<'a, V>where
V: RefUnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> 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