pub enum ExcerptHeaderStyle {
Default,
Emphasis,
}Expand description
Style discriminator for excerpt headers. M.2 shipped a single
Default variant and said future ones would distinguish header
presentation; MH.A6 adds the first.
Variants§
Default
Emphasis
MH.A6: this header is the one to look at. Rendered from its
own theme elements (multibuffer.excerpt_header.emphasis[.*])
rather than the shared backdrop / path pair, so a colourscheme
decides what “prominent” means instead of this enum.
The agenda’s today block is the first consumer: a view whose
whole purpose is “what do I do now” reads badly when the day
you are actually in paints identically to a Thursday three
weeks out. Deliberately NOT named Today — the mechanism is
“one header outranks its peers”, and a diagnostics view
wanting to lift its errors block, or a diff view its conflicted
file, is the same want.
At most one per view is a convention, not a rule. Nothing here enforces it, because nothing here could: excerpts arrive from a sort the provider does not control. A provider that emphasises everything has emphasised nothing, and that is its bug to avoid.
Trait Implementations§
Source§impl Clone for ExcerptHeaderStyle
impl Clone for ExcerptHeaderStyle
Source§fn clone(&self) -> ExcerptHeaderStyle
fn clone(&self) -> ExcerptHeaderStyle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ExcerptHeaderStyle
Source§impl Debug for ExcerptHeaderStyle
impl Debug for ExcerptHeaderStyle
Source§impl Default for ExcerptHeaderStyle
impl Default for ExcerptHeaderStyle
Source§fn default() -> ExcerptHeaderStyle
fn default() -> ExcerptHeaderStyle
impl Eq for ExcerptHeaderStyle
Source§impl PartialEq for ExcerptHeaderStyle
impl PartialEq for ExcerptHeaderStyle
impl StructuralPartialEq for ExcerptHeaderStyle
Auto Trait Implementations§
impl Freeze for ExcerptHeaderStyle
impl RefUnwindSafe for ExcerptHeaderStyle
impl Send for ExcerptHeaderStyle
impl Sync for ExcerptHeaderStyle
impl Unpin for ExcerptHeaderStyle
impl UnsafeUnpin for ExcerptHeaderStyle
impl UnwindSafe for ExcerptHeaderStyle
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§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