[−][src]Struct prototty_grid::Grid
Methods
impl<C: ColourConversion> Grid<C>
[src]
pub fn new(size: Size, colour_conversion: C) -> Self
[src]
pub fn size(&self) -> Size
[src]
pub fn resize(&mut self, size: Size)
[src]
pub fn clear(&mut self)
[src]
pub fn enumerate(&self) -> Enumerate<CommonCell<C::Colour>>
[src]
pub fn iter(&self) -> Iter<CommonCell<C::Colour>>
[src]
pub fn iter_mut(&mut self) -> IterMut<CommonCell<C::Colour>>
[src]
pub fn default_foreground(&mut self) -> C::Colour
[src]
pub fn default_background(&mut self) -> C::Colour
[src]
Trait Implementations
impl<C: Clone + ColourConversion> Clone for Grid<C> where
C::Colour: Clone,
[src]
C::Colour: Clone,
fn clone(&self) -> Grid<C>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<C: Debug + ColourConversion> Debug for Grid<C> where
C::Colour: Debug,
[src]
C::Colour: Debug,
impl<C: ColourConversion> ViewGrid for Grid<C>
[src]
fn set_cell_absolute(&mut self, coord: Coord, depth: i32, view_cell: ViewCell)
[src]
fn size(&self) -> Size
[src]
fn set_cell_relative<R>(
&mut self,
relative_coord: Coord,
relative_depth: i32,
relative_cell: ViewCell,
context: ViewContext<R>
) where
R: ViewTransformRgb24,
[src]
&mut self,
relative_coord: Coord,
relative_depth: i32,
relative_cell: ViewCell,
context: ViewContext<R>
) where
R: ViewTransformRgb24,
Auto Trait Implementations
impl<C> Send for Grid<C> where
C: Send,
<C as ColourConversion>::Colour: Send,
C: Send,
<C as ColourConversion>::Colour: Send,
impl<C> Sync for Grid<C> where
C: Sync,
<C as ColourConversion>::Colour: Sync,
C: Sync,
<C as ColourConversion>::Colour: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,