pub struct ComposedLine {
pub kind: ComposedLineKind,
pub char_offset_start: usize,
pub char_offset_end: usize,
pub cells: Vec<ComposedCell>,
}Expand description
A decoration-aware visual line (document segment or virtual text line).
Fields§
§kind: ComposedLineKindLine kind / anchor info.
char_offset_start: usizeCharacter offset (inclusive) of this visual line segment in the document.
For ComposedLineKind::Document, this is the segment start offset.
For ComposedLineKind::VirtualAboveLine, this is the anchor offset (typically the start
of the associated logical line).
char_offset_end: usizeCharacter offset (exclusive) of this visual line segment in the document.
For ComposedLineKind::Document, this is the segment end offset.
For ComposedLineKind::VirtualAboveLine, this equals Self::char_offset_start.
cells: Vec<ComposedCell>Rendered cells for this line.
Trait Implementations§
Source§impl Clone for ComposedLine
impl Clone for ComposedLine
Source§impl Debug for ComposedLine
impl Debug for ComposedLine
impl Eq for ComposedLine
Source§impl PartialEq for ComposedLine
impl PartialEq for ComposedLine
impl StructuralPartialEq for ComposedLine
Auto Trait Implementations§
impl Forget for ComposedLine
impl Freeze for ComposedLine
impl Move for ComposedLine
impl RefUnwindSafe for ComposedLine
impl Send for ComposedLinewhere
RawVecInner: Send,
impl Sync for ComposedLinewhere
RawVecInner: Sync,
impl Unpin for ComposedLine
impl UnsafeUnpin for ComposedLine
impl UnwindSafe for ComposedLinewhere
RawVecInner: UnwindSafe,
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