pub struct VisualLine {
pub text: String,
pub global_char_start: usize,
pub char_count: usize,
}Expand description
A single visual line after word-wrapping.
Fields§
§text: StringThe text content of this visual line.
global_char_start: usizeThe global character index where this visual line starts in the full text.
char_count: usizeNumber of characters in this visual line.
Trait Implementations§
Source§impl Clone for VisualLine
impl Clone for VisualLine
Source§fn clone(&self) -> VisualLine
fn clone(&self) -> VisualLine
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 moreAuto Trait Implementations§
impl Freeze 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