Struct prototty_grid::Grid
source · pub struct Grid<F, B>where
F: From<Rgb24> + DefaultForeground,
B: From<Rgb24> + DefaultBackground,{ /* private fields */ }
Implementations
sourceimpl<F, B> Grid<F, B>where
F: From<Rgb24> + DefaultForeground + Clone,
B: From<Rgb24> + DefaultBackground + Clone,
impl<F, B> Grid<F, B>where
F: From<Rgb24> + DefaultForeground + Clone,
B: From<Rgb24> + DefaultBackground + Clone,
pub fn new(size: Size) -> Self
pub fn size(&self) -> Size
pub fn resize(&mut self, size: Size)
pub fn clear(&mut self)
pub fn enumerate(&self) -> Enumerate<'_, CommonCell<F, B>>
pub fn iter(&self) -> Iter<'_, CommonCell<F, B>>
pub fn iter_mut(&mut self) -> IterMut<'_, CommonCell<F, B>>
Trait Implementations
sourceimpl<F: Clone, B: Clone> Clone for Grid<F, B>where
F: From<Rgb24> + DefaultForeground,
B: From<Rgb24> + DefaultBackground,
impl<F: Clone, B: Clone> Clone for Grid<F, B>where
F: From<Rgb24> + DefaultForeground,
B: From<Rgb24> + DefaultBackground,
Auto Trait Implementations
impl<F, B> RefUnwindSafe for Grid<F, B>where
B: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, B> Send for Grid<F, B>where
B: Send,
F: Send,
impl<F, B> Sync for Grid<F, B>where
B: Sync,
F: Sync,
impl<F, B> Unpin for Grid<F, B>where
B: Unpin,
F: Unpin,
impl<F, B> UnwindSafe for Grid<F, B>where
B: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more