pub struct EolHint {
pub row: usize,
pub text: String,
pub style: Style,
}Expand description
End-of-line virtual text (e.g. inline git blame). Painted in the trailing
cells of row after its real text, in style, with a 2-column gap. Purely
decorative — occupies no buffer bytes and never affects cursor motion or
layout. Truncated at the right edge of the text area; skipped when the row’s
text already fills the width.
Fields§
§row: usize0-based document row the hint trails.
text: StringThe virtual text to paint (already formatted by the host).
style: StyleStyle for the hint cells (typically a dimmed fg).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EolHint
impl RefUnwindSafe for EolHint
impl Send for EolHint
impl Sync for EolHint
impl Unpin for EolHint
impl UnsafeUnpin for EolHint
impl UnwindSafe for EolHint
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more