pub struct Grid {
pub palette: Vec<String>,
pub cells: Vec<u16>,
}Expand description
A character grid: one palette value per tile.
Fields§
§palette: Vec<String>Values in palette declaration order.
cells: Vec<u16>chunk_size² cells, row-major; a cell is a palette index plus one,
or 0 for an empty tile.
Implementations§
Trait Implementations§
impl Eq for Grid
impl StructuralPartialEq for Grid
Auto Trait Implementations§
impl Forget for Grid
impl Freeze for Grid
impl Move for Grid
impl RefUnwindSafe for Grid
impl Send for Grid
impl Sync for Grid
impl Unpin for Grid
impl UnsafeUnpin for Grid
impl UnwindSafe for Grid
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