pub struct ViewZone {
pub after_line: u32,
pub height_lines: f32,
pub text: String,
}Expand description
Room after a line that is not text: the blank rows a diff leaves on one side to line it up with the other, or a note between two lines.
after_line is the line it follows in the document as it is when the list arrives, from
zero. The zone then follows that line through the reader’s edits. height_lines is how
tall it is in rows, and need not be whole. The caret, a selection and a copy pass over it,
and the lines on screen are reported as the document’s own lines. text, where there is
any, is drawn dimmed on its first row.
Fields§
§after_line: u32§height_lines: f32§text: StringImplementations§
Trait Implementations§
impl StructuralPartialEq for ViewZone
Auto Trait Implementations§
impl Forget for ViewZone
impl Freeze for ViewZone
impl Move for ViewZone
impl RefUnwindSafe for ViewZone
impl Send for ViewZone
impl Sync for ViewZone
impl Unpin for ViewZone
impl UnsafeUnpin for ViewZone
impl UnwindSafe for ViewZone
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