Struct rlifesrc_lib::World [−][src]
The world.
Implementations
impl<'a, R: Rule, RE: Reason<'a, R>> World<'a, R, RE>
[src]
pub fn search(&mut self, max_step: Option<u64>) -> Status
[src]
The search function.
Returns Status::Found
if a result is found,
Status::None
if such pattern does not exist,
Status::Searching
if the number of steps exceeds max_step
and no results are found.
impl<'a, R: Rule> World<'a, R, ReasonNoBackjump>
[src]
pub fn new_with_rule<RE: Reason<'a, R>>(
config: &Config,
rule: R
) -> World<'a, R, RE>
[src]
config: &Config,
rule: R
) -> World<'a, R, RE>
Creates a new world from the configuration and the rule.
pub fn new_no_backjump(config: &Config, rule: R) -> Self
[src]
impl<'a, R: Rule> World<'a, R, ReasonBackjump<'a, R>>
[src]
pub fn new_backjump(config: &Config, rule: R) -> Self
[src]
impl<'a, R: Rule, RE: Reason<'a, R>> World<'a, R, RE>
[src]
pub fn get_cell_state(&self, coord: Coord) -> Option<State>
[src]
Gets the state of a cell. Returns Err(())
if there is no such cell.
impl<'a, R: Rule, RE: Reason<'a, R>> World<'a, R, RE>
[src]
Trait Implementations
impl<'a, R: Rule, RE: Reason<'a, R>> Search for World<'a, R, RE>
[src]
fn search(&mut self, max_step: Option<u64>) -> Status
[src]
fn get_cell_state(&self, coord: Coord) -> Option<State>
[src]
fn config(&self) -> &Config
[src]
fn is_gen_rule(&self) -> bool
[src]
fn is_b0_rule(&self) -> bool
[src]
fn cell_count_gen(&self, t: i32) -> u32
[src]
fn cell_count(&self) -> u32
[src]
fn conflicts(&self) -> u64
[src]
fn set_max_cell_count(&mut self, max_cell_count: Option<u32>)
[src]
fn ser(&self) -> WorldSer
[src]
fn deser(&mut self, ser: &WorldSer) -> Result<(), Error>
[src]
fn rle_gen(&self, t: i32) -> String
[src]
fn plaintext_gen(&self, t: i32) -> String
[src]
Auto Trait Implementations
impl<'a, R, RE> !RefUnwindSafe for World<'a, R, RE>
[src]
impl<'a, R, RE> !Send for World<'a, R, RE>
[src]
impl<'a, R, RE> !Sync for World<'a, R, RE>
[src]
impl<'a, R, RE> Unpin for World<'a, R, RE> where
R: Unpin,
RE: Unpin,
<R as Rule>::Desc: Unpin,
[src]
R: Unpin,
RE: Unpin,
<R as Rule>::Desc: Unpin,
impl<'a, R, RE> !UnwindSafe for World<'a, R, RE>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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 = Infallible
The type returned in the event of a conversion error.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,