[−][src]Struct rlifesrc_lib::rules::Life
Totalistic life-like rules.
Methods
impl Life
[src]
pub fn new(b: Vec<u8>, s: Vec<u8>) -> Self
[src]
Constructs a new rule from the b
and s
data.
pub fn parse_rule(input: &str) -> Result<Self, ParseRuleError>
[src]
Trait Implementations
impl Rule for Life
[src]
type Desc = NbhdDesc
The type of neighborhood descriptor of the rule. Read more
fn has_b0(&self) -> bool
[src]
fn new_desc(state: State, succ_state: State) -> Self::Desc
[src]
fn update_desc(
cell: CellRef<Self>,
old_state: Option<State>,
state: Option<State>
)
[src]
cell: CellRef<Self>,
old_state: Option<State>,
state: Option<State>
)
fn consistify<'a>(world: &mut World<'a, Self>, cell: CellRef<'a, Self>) -> bool
[src]
impl ParseLife for Life
[src]
A parser for the rule.
Auto Trait Implementations
impl Send for Life
impl Sync for Life
impl Unpin for Life
impl UnwindSafe for Life
impl RefUnwindSafe for Life
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,