[][src]Struct hashlife::Hashlife

pub struct Hashlife { /* fields omitted */ }

Implementations

impl Hashlife[src]

pub fn next_generation(&mut self)[src]

pub fn from_array(
    buffer: Vec<u8>,
    width: usize,
    height: usize,
    edge: Edge
) -> Self
[src]

Construct a Hashlife program given an array of states.

pub fn get(&self, x: isize, y: isize) -> Option<Automata>[src]

pub fn draw_diff_to_viewport_array(
    &mut self,
    buffer: &mut [u8],
    viewport: BoundingBox
)
[src]

Draw automata that differes from the previous generation in the given array.

pub fn draw_to_viewport_buffer(
    &mut self,
    buffer: &mut [u8],
    viewport: BoundingBox
)
[src]

pub fn get_generation(&self) -> usize[src]

Auto Trait Implementations

impl !RefUnwindSafe for Hashlife

impl !Send for Hashlife

impl !Sync for Hashlife

impl Unpin for Hashlife

impl !UnwindSafe for Hashlife

Blanket Implementations

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

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

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

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 = Infallible

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.