pub struct GridCell { /* private fields */ }Implementations§
Source§impl GridCell
impl GridCell
pub fn new(character: char) -> Self
pub fn new_fg_color(character: char, fg_color: Rgba<u8>) -> Self
pub fn new_full_color( character: char, fg_color: Rgba<u8>, bg_color: Rgba<u8>, ) -> Self
pub fn space() -> Self
pub fn set_fg_color(&mut self, fg_color: Rgba<u8>)
pub fn set_bg_color(&mut self, bg_color: Rgba<u8>)
pub fn character(&self) -> char
pub fn fg_color(&self) -> Rgba<u8>
pub fn bg_color(&self) -> Rgba<u8>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GridCell
impl RefUnwindSafe for GridCell
impl Send for GridCell
impl Sync for GridCell
impl Unpin for GridCell
impl UnwindSafe for GridCell
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