pub struct ExcerptHeader {
pub title: String,
pub style: ExcerptHeaderStyle,
pub path: Option<PathBuf>,
pub match_count: Option<u32>,
}Expand description
Header presentation for an excerpt — title + style + the mode-owned semantic data the rich header renderer reads (MH.A2, see multibuffer-views.md §3.8).
Fields§
§title: StringHuman-readable label. Conventionally
"<path> : <start_line+1>-<end_line+1>" for a regular
file excerpt (1-indexed for display). Empty string = no
header rendered. Fallback basename when path is None.
style: ExcerptHeaderStyle§path: Option<PathBuf>MH.A2: the source file path. Drives the leading file-type
icon and the basename-bright / dir-dim split in
[header_cells]. None ⇒ fall back to title. Set by the
producing mode (e.g. the search provider) at excerpt
creation, NOT baked into cells here — the glyph + colours
are resolved live in collect() so ui.nerd_fonts /
:colorscheme toggles re-render correctly.
match_count: Option<u32>MH.A2: hit count for the · N matches badge. Mode-consumed
datum set at production (the search mode counts hits per
source). None ⇒ no badge rendered.
Implementations§
Trait Implementations§
Source§impl Clone for ExcerptHeader
impl Clone for ExcerptHeader
Source§fn clone(&self) -> ExcerptHeader
fn clone(&self) -> ExcerptHeader
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExcerptHeader
impl Debug for ExcerptHeader
Source§impl Default for ExcerptHeader
impl Default for ExcerptHeader
Source§fn default() -> ExcerptHeader
fn default() -> ExcerptHeader
Auto Trait Implementations§
impl Freeze for ExcerptHeader
impl RefUnwindSafe for ExcerptHeader
impl Send for ExcerptHeader
impl Sync for ExcerptHeader
impl Unpin for ExcerptHeader
impl UnsafeUnpin for ExcerptHeader
impl UnwindSafe for ExcerptHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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> ⓘ
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> ⓘ
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