[−][src]Struct hashlife::Hashlife
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]
buffer: Vec<u8>,
width: usize,
height: usize,
edge: Edge
) -> Self
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]
&mut self,
buffer: &mut [u8],
viewport: BoundingBox
)
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]
&mut self,
buffer: &mut [u8],
viewport: BoundingBox
)
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]
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>,