pub struct ScrollLayer {
pub cols: u32,
pub turns: u32,
pub cells: Vec<Cell>,
}Expand description
One layer of a journey: a strip of cells as tall as the grid whose right
edge continues into its left edge, moving turns whole strip widths per
loop.
Fields§
§cols: u32Strip width in cells (the period).
turns: u32Whole strip widths it moves per loop.
cells: Vec<Cell>cols * grid.rows cells, row-major: Cell::default() is see-through,
HOLE hides what is behind. Not stored in a package’s JSON.
Trait Implementations§
Source§impl Clone for ScrollLayer
impl Clone for ScrollLayer
Source§impl Debug for ScrollLayer
impl Debug for ScrollLayer
Source§impl<'de> Deserialize<'de> for ScrollLayer
impl<'de> Deserialize<'de> for ScrollLayer
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 ScrollLayer
Source§impl PartialEq for ScrollLayer
impl PartialEq for ScrollLayer
Source§impl Serialize for ScrollLayer
impl Serialize for ScrollLayer
impl StructuralPartialEq for ScrollLayer
Auto Trait Implementations§
impl Forget for ScrollLayer
impl Freeze for ScrollLayer
impl Move for ScrollLayer
impl RefUnwindSafe for ScrollLayer
impl Send for ScrollLayer
impl Sync for ScrollLayer
impl Unpin for ScrollLayer
impl UnsafeUnpin for ScrollLayer
impl UnwindSafe for ScrollLayer
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