pub struct InlayRow {
pub line: u32,
pub byte: u32,
pub text: String,
pub style: Style,
}Expand description
One piece of inline virtual text: where it anchors, what it says, and how to paint it.
Mirrors the host’s InlayHintRow without depending on it —
lattice-mode sits below lattice-host, so the host converts on
drain. style is normally [Style::Element] naming an element the
producing mode registered.
Fields§
§line: u320-based buffer line.
byte: u320-based utf-8 byte offset within that line. 0 anchors the
text at the start of the row (a leading icon).
text: StringThe virtual text itself.
style: StyleHow to paint it.
Trait Implementations§
impl Eq for InlayRow
impl StructuralPartialEq for InlayRow
Auto Trait Implementations§
impl Freeze for InlayRow
impl RefUnwindSafe for InlayRow
impl Send for InlayRow
impl Sync for InlayRow
impl Unpin for InlayRow
impl UnsafeUnpin for InlayRow
impl UnwindSafe for InlayRow
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.