pub struct DashboardCtx {
pub pane_width: usize,
pub nerd_fonts: bool,
pub version: String,
}Expand description
Read-only facts a section needs to render.
DB.1 carries the primitives the pure sections need. Later slices grow it with the resolved-theme snapshot (DB.3/DB.4) and help/keymap lookups so the “help & bindings” section stays truthful — added when the wiring that can supply them lands, not before.
Fields§
§pane_width: usizePane width in cells, used by the compositor for centring (DB.4).
nerd_fonts: boolWhether Nerd Font glyphs may be used (else the BMP-block fallback).
version: StringThe editor version string, for the branding section.
Trait Implementations§
Source§impl Clone for DashboardCtx
impl Clone for DashboardCtx
Source§fn clone(&self) -> DashboardCtx
fn clone(&self) -> DashboardCtx
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DashboardCtx
impl Debug for DashboardCtx
Auto Trait Implementations§
impl Freeze for DashboardCtx
impl RefUnwindSafe for DashboardCtx
impl Send for DashboardCtx
impl Sync for DashboardCtx
impl Unpin for DashboardCtx
impl UnsafeUnpin for DashboardCtx
impl UnwindSafe for DashboardCtx
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