pub struct Cell {
pub symbol: String,
pub style: Style,
}Expand description
A single terminal cell containing a character and style.
Each cell holds one grapheme cluster (stored as a String to support
multi-byte Unicode) and the Style to render it with. Wide characters
(e.g., CJK) occupy two adjacent cells; the second cell’s symbol is left
empty by the buffer layer.
Fields§
§symbol: StringThe grapheme cluster displayed in this cell. Defaults to a single space.
style: StyleThe visual style (colors and modifiers) for this cell.
Implementations§
Trait Implementations§
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 UnsafeUnpin 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