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§
source§impl PartialEq<Cell> for Cell
impl PartialEq<Cell> for Cell
impl Eq for Cell
impl StructuralEq for Cell
impl StructuralPartialEq for Cell
Auto Trait Implementations§
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