pub struct HeaderlineProvider { /* private fields */ }Expand description
VirtualRowProvider that emits one sticky row above line 0 from any
Headerline impl.
Register this the same way as any other provider. The row is hidden
(empty collect() result) when the impl returns None from render().
Implementations§
Source§impl HeaderlineProvider
impl HeaderlineProvider
Sourcepub fn new(provider_id: ProviderId, inner: Arc<dyn Headerline>) -> Self
pub fn new(provider_id: ProviderId, inner: Arc<dyn Headerline>) -> Self
Wrap any Headerline impl directly (e.g. when the mode implements
the trait on its own existing state struct).
Trait Implementations§
Source§impl Debug for HeaderlineProvider
impl Debug for HeaderlineProvider
Source§impl VirtualRowProvider for HeaderlineProvider
impl VirtualRowProvider for HeaderlineProvider
Source§fn id(&self) -> ProviderId
fn id(&self) -> ProviderId
A stable id for this provider. Used by the worker to
deduplicate registration + route mutation
notifications.
Source§fn version(&self) -> u64
fn version(&self) -> u64
Monotonic version counter — the provider bumps it
whenever the rows
Self::collect would emit have
changed. The worker uses the combined fingerprint of all
providers’ versions to short-circuit on the cache-hit
path without paying for the (potentially expensive)
collect calls. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for HeaderlineProvider
impl !UnwindSafe for HeaderlineProvider
impl Freeze for HeaderlineProvider
impl Send for HeaderlineProvider
impl Sync for HeaderlineProvider
impl Unpin for HeaderlineProvider
impl UnsafeUnpin for HeaderlineProvider
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