pub struct GraphicalRendererGrid2D<CI, T>where
CI: Hash,{ /* private fields */ }
Implementations§
Source§impl<T, U> GraphicalRendererGrid2D<GridPoint2D<U>, T>where
T: 'static + Send + Sync + Clone,
U: 'static + Send + Sync + Clone + Ord + CheckedSub + ToPrimitive + FromPrimitive + Hash,
impl<T, U> GraphicalRendererGrid2D<GridPoint2D<U>, T>where
T: 'static + Send + Sync + Clone,
U: 'static + Send + Sync + Clone + Ord + CheckedSub + ToPrimitive + FromPrimitive + Hash,
pub fn new( board_width: usize, board_height: usize, states_storage: StatesReadOnly<GridPoint2D<U>, T>, ) -> Result<Self, UnsupportedBackend>
pub fn with_title(self, title: String) -> Self
pub fn with_keyboard_control(self, control: KeyboardControl) -> Self
pub fn with_squares(self) -> Self
pub fn with_triangles(self) -> Self
Trait Implementations§
Source§impl<T, U> CellularAutomatonRenderer<T, Rgba<u16>> for GraphicalRendererGrid2D<GridPoint2D<U>, T>where
T: 'static + Send + Sync + Clone + Hash,
U: 'static + Send + Sync + Clone + Ord + CheckedSub + ToPrimitive + FromPrimitive + Hash,
impl<T, U> CellularAutomatonRenderer<T, Rgba<u16>> for GraphicalRendererGrid2D<GridPoint2D<U>, T>where
T: 'static + Send + Sync + Clone + Hash,
U: 'static + Send + Sync + Clone + Ord + CheckedSub + ToPrimitive + FromPrimitive + Hash,
fn need_run_on_main(&self) -> bool
fn run(&mut self, visual_mapping: Box<dyn StateVisualMapping<T, RGBA16>>)
Auto Trait Implementations§
impl<CI, T> Freeze for GraphicalRendererGrid2D<CI, T>where
T: Freeze,
impl<CI, T> RefUnwindSafe for GraphicalRendererGrid2D<CI, T>where
T: RefUnwindSafe,
impl<CI, T> Send for GraphicalRendererGrid2D<CI, T>
impl<CI, T> Sync for GraphicalRendererGrid2D<CI, T>
impl<CI, T> Unpin for GraphicalRendererGrid2D<CI, T>where
T: Unpin,
impl<CI, T> UnwindSafe for GraphicalRendererGrid2D<CI, T>where
T: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more