pub struct Cell { /* private fields */ }
Expand description
Represents a single terminal cell.
Implementations§
Source§impl Cell
impl Cell
Sourcepub fn contents(&self) -> String
pub fn contents(&self) -> String
Returns the text contents of the cell.
Can include multiple unicode characters if combining characters are used, but will contain at most one character with a non-zero character width.
Sourcepub fn has_contents(&self) -> bool
pub fn has_contents(&self) -> bool
Returns whether the cell contains any text data.
Sourcepub fn is_wide(&self) -> bool
pub fn is_wide(&self) -> bool
Returns whether the text data in the cell represents a wide character.
Sourcepub fn is_wide_continuation(&self) -> bool
pub fn is_wide_continuation(&self) -> bool
Returns whether the cell contains the second half of a wide character (in other words, whether the previous cell in the row contains a wide character)
Sourcepub fn bold(&self) -> bool
pub fn bold(&self) -> bool
Returns whether the cell should be rendered with the bold text attribute.
Sourcepub fn italic(&self) -> bool
pub fn italic(&self) -> bool
Returns whether the cell should be rendered with the italic text attribute.
Trait Implementations§
impl Eq 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