pub struct CellAutomata1D { /* private fields */ }Implementations§
Source§impl CellAutomata1D
impl CellAutomata1D
pub fn new(init_state: &str, rule_num: u8) -> Self
pub fn with_rule(rule_num: u8) -> Self
pub fn set_state(&mut self, state: &str)
pub fn set_rule(&mut self, number: u8)
pub fn next(&mut self)
pub fn string_state(&self) -> String
pub fn get_state(&self) -> Vec<bool>
Auto Trait Implementations§
impl Freeze for CellAutomata1D
impl RefUnwindSafe for CellAutomata1D
impl Send for CellAutomata1D
impl Sync for CellAutomata1D
impl Unpin for CellAutomata1D
impl UnsafeUnpin for CellAutomata1D
impl UnwindSafe for CellAutomata1D
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