Struct gol_renderer::graphics::grid_2d::GraphicalRendererGrid2D [−][src]
Implementations
impl<T, U> GraphicalRendererGrid2D<GridPoint2D<U>, T> where
T: 'static + Send + Sync + Clone,
U: 'static + Send + Sync + Clone + Ord + CheckedSub + ToPrimitive + FromPrimitive + Hash,
[src]
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>
[src]
board_width: usize,
board_height: usize,
states_storage: StatesReadOnly<GridPoint2D<U>, T>
) -> Result<Self, UnsupportedBackend>
pub fn with_title(self, title: String) -> Self
[src]
pub fn with_keyboard_control(self, control: KeyboardControl) -> Self
[src]
pub fn with_squares(self) -> Self
[src]
pub fn with_triangles(self) -> Self
[src]
Trait Implementations
impl<T, U> CellularAutomatonRenderer<T, RGBA<u16, u16>> for GraphicalRendererGrid2D<GridPoint2D<U>, T> where
T: 'static + Send + Sync + Clone + Hash,
U: 'static + Send + Sync + Clone + Ord + CheckedSub + ToPrimitive + FromPrimitive + Hash,
[src]
T: 'static + Send + Sync + Clone + Hash,
U: 'static + Send + Sync + Clone + Ord + CheckedSub + ToPrimitive + FromPrimitive + Hash,
fn need_run_on_main(&self) -> bool
[src]
fn run(&mut self, visual_mapping: Box<dyn StateVisualMapping<T, RGBA16>>)
[src]
Auto Trait Implementations
impl<CI, T> !RefUnwindSafe for GraphicalRendererGrid2D<CI, T>
impl<CI, T> Send for GraphicalRendererGrid2D<CI, T> where
CI: Send + Sync,
T: Send + Sync,
CI: Send + Sync,
T: Send + Sync,
impl<CI, T> Sync for GraphicalRendererGrid2D<CI, T> where
CI: Send + Sync,
T: Send + Sync,
CI: Send + Sync,
T: Send + Sync,
impl<CI, T> Unpin for GraphicalRendererGrid2D<CI, T> where
T: Unpin,
T: Unpin,
impl<CI, T> !UnwindSafe for GraphicalRendererGrid2D<CI, T>
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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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>,