[][src]Struct rlifesrc_lib::World

pub struct World<'a, R: Rule> { /* fields omitted */ }

The world.

Methods

impl<'a, R: Rule> World<'a, R>[src]

pub fn search(&mut self, max_step: Option<u64>) -> Status[src]

The search function.

Returns Found if a result is found, None if such pattern does not exist, Searching if the number of steps exceeds max_step and no results are found.

impl<'a, R: Rule> World<'a, R>[src]

pub fn new(config: &Config, rule: R) -> Self[src]

Creates a new world from the configuration and the rule.

In rules that contain B0, cells outside the search range are considered Dead in even generations, Alive in odd generations. In other rules, all cells outside the search range are Dead.

After the last generation, the pattern will return to the first generation, applying the transformation first, and then the translation defined by dx and dy.

Trait Implementations

The Search trait is implemented for every World.

Auto Trait Implementations

impl<'a, R> !Send for World<'a, R>

impl<'a, R> !Sync for World<'a, R>

impl<'a, R> Unpin for World<'a, R> where
    R: Unpin,
    <R as Rule>::Desc: Unpin

impl<'a, R> !UnwindSafe for World<'a, R>

impl<'a, R> !RefUnwindSafe for World<'a, R>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,