pub struct Lattice {
pub width: usize,
pub height: usize,
pub lit: Vec<bool>,
}Expand description
A finished lattice: one bit a site, row major.
Fields§
§width: usizeSites across.
height: usizeSites down.
lit: Vec<bool>true where the spin is up — the lit colour.
Implementations§
Auto Trait Implementations§
impl Freeze for Lattice
impl RefUnwindSafe for Lattice
impl Send for Lattice
impl Sync for Lattice
impl Unpin for Lattice
impl UnsafeUnpin for Lattice
impl UnwindSafe for Lattice
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