Enum ca_formats::macrocell::NodeData
source · pub enum NodeData {
Level1 {
nw: u8,
ne: u8,
sw: u8,
se: u8,
},
Level3(u64),
Node {
level: u8,
nw: usize,
ne: usize,
sw: usize,
se: usize,
},
}
Expand description
Data in a Node
.
Variants§
Level1
A level 1 leaf, representing a 2x2 square, in rules with more than 2 states.
The data contains the states of four cells in the square.
Level3(u64)
A level 3 leaf, representing a 8x8 square, in rules with 2 states.
The data is represented by a 64-bit integer.
Node
A non-leaf node.
The data contains the level of the node, and the ids of four children.
Implementations§
Trait Implementations§
source§impl Ord for NodeData
impl Ord for NodeData
source§impl PartialEq for NodeData
impl PartialEq for NodeData
source§impl PartialOrd for NodeData
impl PartialOrd for NodeData
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for NodeData
impl Eq for NodeData
impl StructuralEq for NodeData
impl StructuralPartialEq for NodeData
Auto Trait Implementations§
impl RefUnwindSafe for NodeData
impl Send for NodeData
impl Sync for NodeData
impl Unpin for NodeData
impl UnwindSafe for NodeData
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