pub struct RowAnnotationProvider { /* private fields */ }Expand description
HB.5: renders a scan’s per-row annotations as virtual rows below their rows.
Reads the view’s state through the SERVICE on every call rather than holding
an Arc to it, because set_state replaces that Arc on every open — a
provider that captured one would freeze at the first scan’s answer and its
symptom would be “the graph stopped updating”.
Implementations§
Source§impl RowAnnotationProvider
impl RowAnnotationProvider
pub fn new( view: BufferId, service: ScanViewServiceHandle, theme: Option<ThemeRegistryHandle>, ) -> Self
Trait Implementations§
Source§impl Debug for RowAnnotationProvider
impl Debug for RowAnnotationProvider
Source§impl VirtualRowProvider for RowAnnotationProvider
impl VirtualRowProvider for RowAnnotationProvider
Source§fn version(&self) -> u64
fn version(&self) -> u64
The state’s counter, plus the theme’s — a :colorscheme swap must
repaint the rows rather than leave them in the previous palette, which
is the lesson the clock report’s version already carries.
Auto Trait Implementations§
impl !RefUnwindSafe for RowAnnotationProvider
impl !UnwindSafe for RowAnnotationProvider
impl Freeze for RowAnnotationProvider
impl Send for RowAnnotationProvider
impl Sync for RowAnnotationProvider
impl Unpin for RowAnnotationProvider
impl UnsafeUnpin for RowAnnotationProvider
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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