pub struct Cell {
pub symbol: String,
pub fg: Option<RgbOrIndex>,
pub bg: Option<RgbOrIndex>,
pub modifiers: u16,
}Expand description
A single terminal cell — one grapheme + style. Mirrors
ratatui’s buffer::Cell shape but with serde derived.
Fields§
§symbol: StringThe grapheme cluster painted in this cell. Multi-codepoint (e.g. flag emoji) is fine; mnml stamps the whole thing into a single buffer cell.
fg: Option<RgbOrIndex>§bg: Option<RgbOrIndex>§modifiers: u16Bitfield of [Modifier] flags. Stored as u16 for compact wire shape.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cell
impl<'de> Deserialize<'de> for Cell
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 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