pub struct Cell {Show 17 fields
pub x: u16,
pub y: u16,
pub char: String,
pub fg: CellColor,
pub bg: CellColor,
pub bold: bool,
pub dim: bool,
pub italic: bool,
pub inverse: bool,
pub invisible: bool,
pub strike: bool,
pub blink: bool,
pub underline: bool,
pub underline_style: String,
pub underline_color: CellColor,
pub link: String,
pub link_id: String,
}Fields§
§x: u16§y: u16§char: String§fg: CellColor§bg: CellColor§bold: bool§dim: bool§italic: bool§inverse: bool§invisible: bool§strike: bool§blink: bool§underline: bool§underline_style: String§underline_color: CellColor§link: StringThe OSC 8 URI this cell links to, empty when it links nowhere.
link_id: StringThe link’s id= parameter, empty when the sequence carried none.
Separate from link because it identifies a link across a wrap rather
than describing where the link points: a program that wraps its own
links tags each run with a shared id= so a terminal can treat them as
one.
Backend-dependent, unlike everything else on a cell. Ghostty’s FFI
exposes a link’s URI and nothing else, so this is always empty there
and “no id= was sent” cannot be told apart from “this backend cannot
see it”. An assertion built on it will not mean the same thing on every
backend, which is why no locator matches on it.
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.