pub struct MultibufferStatusProvider { /* private fields */ }Expand description
Sticky headerline provider that surfaces the view’s
HeaderlineStatus as a pinned row above line 0.
Implements [Headerline] directly — the status lives in
MultibufferInner (behind an ArcSwap); no extra dedicated
state allocation is needed.
Implementations§
Source§impl MultibufferStatusProvider
impl MultibufferStatusProvider
Sourcepub fn new(multibuffer: MultibufferDocumentHandle) -> Self
pub fn new(multibuffer: MultibufferDocumentHandle) -> Self
Construct without theme wiring — the status row renders with the
pre-MH.A4 fallback hex. Test convenience; production uses
Self::with_theme.
Sourcepub fn with_theme(
multibuffer: MultibufferDocumentHandle,
theme: ThemeRegistryHandle,
elements: MultibufferHeaderElementIds,
) -> Self
pub fn with_theme( multibuffer: MultibufferDocumentHandle, theme: ThemeRegistryHandle, elements: MultibufferHeaderElementIds, ) -> Self
MH.A4: construct with the resolved theme handle + the interned
status element ids so render() resolves the
multibuffer.status.* foregrounds (mirrors the excerpt-header
provider’s with_theme).
pub fn into_provider(self, buffer_id: BufferId) -> HeaderlineProvider
Trait Implementations§
Source§impl Debug for MultibufferStatusProvider
impl Debug for MultibufferStatusProvider
Auto Trait Implementations§
impl !RefUnwindSafe for MultibufferStatusProvider
impl !UnwindSafe for MultibufferStatusProvider
impl Freeze for MultibufferStatusProvider
impl Send for MultibufferStatusProvider
impl Sync for MultibufferStatusProvider
impl Unpin for MultibufferStatusProvider
impl UnsafeUnpin for MultibufferStatusProvider
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