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§fn clone(&self) -> ComposedLine
fn clone(&self) -> ComposedLine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComposedLine
impl Debug for ComposedLine
impl Eq for ComposedLine
Source§impl PartialEq for ComposedLine
impl PartialEq for ComposedLine
Source§fn eq(&self, other: &ComposedLine) -> bool
fn eq(&self, other: &ComposedLine) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComposedLine
Auto Trait Implementations§
impl Freeze for ComposedLine
impl RefUnwindSafe for ComposedLine
impl Send for ComposedLine
impl Sync for ComposedLine
impl Unpin for ComposedLine
impl UnsafeUnpin for ComposedLine
impl UnwindSafe for ComposedLine
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