pub enum CellWidth {
Narrow,
WideLeading,
WideTrailing,
}Expand description
Number and role of grid columns occupied by a terminal cell.
The enum is metadata only: TerminalCell constructors do not measure or
validate their text.
§Examples
use ailloli_ui_terminal_core::CellWidth;
assert_ne!(CellWidth::WideLeading, CellWidth::WideTrailing);Variants§
Narrow
One ordinary grid column, including a blank cell.
WideLeading
First column of a two-column glyph; carries the visible text.
WideTrailing
Second column of a two-column glyph; normally carries empty text.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CellWidth
impl<'de> Deserialize<'de> for CellWidth
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for CellWidth
impl Eq for CellWidth
impl StructuralPartialEq for CellWidth
Auto Trait Implementations§
impl Freeze for CellWidth
impl RefUnwindSafe for CellWidth
impl Send for CellWidth
impl Sync for CellWidth
impl Unpin for CellWidth
impl UnwindSafe for CellWidth
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