pub struct Pen {
pub fg: Color,
pub bg: Color,
pub flags: CellFlags,
}Expand description
The current SGR state — the appearance copied into each printed cell.
Modelling it as a “template cell” mirrors Alacritty: a later slice can make
erase (ED/EL) fill cleared cells with bg instead of Default and that
is Background Color Erase (BCE), no structural change. See term.rs.
Fields§
§fg: Color§bg: Color§flags: CellFlagsImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pen
impl RefUnwindSafe for Pen
impl Send for Pen
impl Sync for Pen
impl Unpin for Pen
impl UnsafeUnpin for Pen
impl UnwindSafe for Pen
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