pub struct Cell {
pub c: char,
pub fg: Color,
pub bg: Color,
pub flags: Flags,
pub extra: [char; 5],
}
Fields§
§c: char
§fg: Color
§bg: Color
§flags: Flags
§extra: [char; 5]
Implementations§
Source§impl Cell
impl Cell
pub fn bold(&self) -> bool
pub fn inverse(&self) -> bool
pub fn dim(&self) -> bool
pub fn new(c: char, fg: Color, bg: Color) -> Cell
pub fn is_empty(&self) -> bool
pub fn reset(&mut self, template: &Cell)
pub fn chars(&self) -> [char; 6]
pub fn push_extra(&mut self, c: char)
Trait Implementations§
impl Copy for Cell
impl Eq for Cell
impl StructuralPartialEq for Cell
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnwindSafe for Cell
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