pub struct VisualLine {
pub logical_line: usize,
pub visual_subline: usize,
pub text: String,
pub char_start: usize,
pub char_end: usize,
pub is_continuation: bool,
}Expand description
A visually wrapped slice of a logical line.
Fields§
§logical_line: usize0-indexed logical line index in the underlying buffer.
visual_subline: usize0-indexed subline index within this logical line.
text: StringThe wrapped display text for this visual line.
char_start: usizeCharacter offset start within the logical line (inclusive).
char_end: usizeCharacter offset end within the logical line (exclusive).
is_continuation: boolWhether this visual line is a continuation line from soft wrapping.
Trait Implementations§
Source§impl Clone for VisualLine
impl Clone for VisualLine
Source§impl Debug for VisualLine
impl Debug for VisualLine
impl Eq for VisualLine
Source§impl PartialEq for VisualLine
impl PartialEq for VisualLine
impl StructuralPartialEq for VisualLine
Auto Trait Implementations§
impl Forget for VisualLine
impl Freeze for VisualLine
impl Move for VisualLine
impl RefUnwindSafe for VisualLine
impl Send for VisualLine
impl Sync for VisualLine
impl Unpin for VisualLine
impl UnsafeUnpin for VisualLine
impl UnwindSafe for VisualLine
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.