pub enum PatternNode {
Leaf(u64),
Node {
nw: u32,
ne: u32,
sw: u32,
se: u32,
},
}Expand description
A node is either a leaf (8x8 cells) or a non-leaf (4x4 nodes). Cells in the leaf are stored as a 64-bit integer in row-major order.
Variants§
Trait Implementations§
Source§impl Clone for PatternNode
impl Clone for PatternNode
Source§fn clone(&self) -> PatternNode
fn clone(&self) -> PatternNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PatternNode
impl Eq for PatternNode
Source§impl PartialEq for PatternNode
impl PartialEq for PatternNode
Source§fn eq(&self, other: &PatternNode) -> bool
fn eq(&self, other: &PatternNode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatternNode
Auto Trait Implementations§
impl Freeze for PatternNode
impl RefUnwindSafe for PatternNode
impl Send for PatternNode
impl Sync for PatternNode
impl Unpin for PatternNode
impl UnsafeUnpin for PatternNode
impl UnwindSafe for PatternNode
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