Struct rlifesrc_lib::rules::ntlife::NbhdDesc
source · pub struct NbhdDesc(u32);
Expand description
The neighborhood descriptor.
It is a 20-bit integer of the form 0b_abcdefgh_ijklmnop_qr_st
,
where:
0b_ai
,0b_bj
, …,0b_hp
are the states of the eight neighbors,0b_qr
is the state of the successor.0b_st
is the state of the cell itself.0b_10
means dead,0b_01
means alive,0b_00
means unknown.
Tuple Fields§
§0: u32
Trait Implementations§
source§impl PartialEq for NbhdDesc
impl PartialEq for NbhdDesc
impl Copy for NbhdDesc
impl Eq for NbhdDesc
impl StructuralEq for NbhdDesc
impl StructuralPartialEq for NbhdDesc
Auto Trait Implementations§
impl RefUnwindSafe for NbhdDesc
impl Send for NbhdDesc
impl Sync for NbhdDesc
impl Unpin for NbhdDesc
impl UnwindSafe for NbhdDesc
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