pub struct ViewLine {
pub text: String,
pub source_line: usize,
pub is_wrap: bool,
pub width: usize,
}Expand description
A single wrapped (virtual) line in the view.
Fields§
§text: StringThe rendered text for this virtual line.
source_line: usizeThe source (logical) line index from the original text.
is_wrap: boolTrue if this is a wrapped continuation of the source line.
width: usizeDisplay width in terminal cells.
Trait Implementations§
impl Eq for ViewLine
impl StructuralPartialEq for ViewLine
Auto Trait Implementations§
impl Freeze for ViewLine
impl RefUnwindSafe for ViewLine
impl Send for ViewLine
impl Sync for ViewLine
impl Unpin for ViewLine
impl UnwindSafe for ViewLine
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.