[−][src]Struct rlifesrc_lib::World
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
impl<'a, R: Rule> Search for World<'a, R>
[src]
The Search
trait is implemented for every World
.
fn search(&mut self, max_step: Option<u64>) -> Status
[src]
fn display_gen(&self, t: isize) -> String
[src]
fn config(&self) -> Config
[src]
fn cell_count_gen(&self, t: isize) -> usize
[src]
fn cell_count(&self) -> usize
[src]
fn conflicts(&self) -> u64
[src]
fn set_max_cell_count(&mut self, max_cell_count: Option<usize>)
[src]
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,
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]
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>,