pub struct WrapLine {
pub text: String,
pub logical_line: usize,
pub start_col: usize,
}Expand description
A single visual line resulting from soft-wrapping a logical line.
Fields§
§text: StringThe text content of this visual line.
logical_line: usizeThe index of the logical line this visual line belongs to.
start_col: usizeThe character offset within the logical line where this visual line starts.
Trait Implementations§
impl Eq for WrapLine
impl StructuralPartialEq for WrapLine
Auto Trait Implementations§
impl Freeze for WrapLine
impl RefUnwindSafe for WrapLine
impl Send for WrapLine
impl Sync for WrapLine
impl Unpin for WrapLine
impl UnwindSafe for WrapLine
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