pub struct Cell {
pub symbol: String,
pub fg: Color,
pub bg: Color,
pub modifier: Modifier,
}
Expand description
A buffer cell
Fields§
§symbol: String
§fg: Color
§bg: Color
§modifier: Modifier
Implementations§
Source§impl Cell
impl Cell
pub fn set_symbol(&mut self, symbol: &str) -> &mut Cell
pub fn set_char(&mut self, ch: char) -> &mut Cell
pub fn set_fg(&mut self, color: Color) -> &mut Cell
pub fn set_bg(&mut self, color: Color) -> &mut Cell
pub fn set_style(&mut self, style: Style) -> &mut Cell
pub fn style(&self) -> Style
pub fn reset(&mut self)
Trait Implementations§
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