pub struct ComposedCell {
pub ch: char,
pub width: usize,
pub styles: Vec<StyleId>,
pub source: ComposedCellSource,
}Expand description
A cell in a composed (decoration-aware) snapshot.
Fields§
§ch: charThe rendered character.
width: usizeThe rendered cell width (typically 1 or 2).
styles: Vec<StyleId>Style ids applied to this cell.
source: ComposedCellSourceWhere this cell originated from (document text vs virtual text).
Trait Implementations§
Source§impl Clone for ComposedCell
impl Clone for ComposedCell
Source§fn clone(&self) -> ComposedCell
fn clone(&self) -> ComposedCell
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComposedCell
impl Debug for ComposedCell
Source§impl PartialEq for ComposedCell
impl PartialEq for ComposedCell
impl Eq for ComposedCell
impl StructuralPartialEq for ComposedCell
Auto Trait Implementations§
impl Freeze for ComposedCell
impl RefUnwindSafe for ComposedCell
impl Send for ComposedCell
impl Sync for ComposedCell
impl Unpin for ComposedCell
impl UnsafeUnpin for ComposedCell
impl UnwindSafe for ComposedCell
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