pub enum FieldStyle {
Sha,
Branch,
Ref,
Author,
Alert,
Label,
}Expand description
The git role a header field plays. Maps to a theme element, which
is what gives the row its identity-by-colour (the compact format
carries no Head:-style labels).
Variants§
Sha
A commit SHA (magit.sha).
Branch
The checked-out / subject branch (magit.branch.current).
Ref
Any other ref — upstream, rebase target, blamed revision
(magit.ref.decoration).
Author
A commit author (magit.author).
Alert
A state the user must not miss: AMEND, REBASE IN PROGRESS
(magit.headerline.alert).
Label
Counts, paths, scopes, dates — the supporting detail
(magit.headerline.label).
Trait Implementations§
Source§impl Clone for FieldStyle
impl Clone for FieldStyle
Source§fn clone(&self) -> FieldStyle
fn clone(&self) -> FieldStyle
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 moreimpl Copy for FieldStyle
Source§impl Debug for FieldStyle
impl Debug for FieldStyle
impl Eq for FieldStyle
Source§impl PartialEq for FieldStyle
impl PartialEq for FieldStyle
impl StructuralPartialEq for FieldStyle
Auto Trait Implementations§
impl Freeze for FieldStyle
impl RefUnwindSafe for FieldStyle
impl Send for FieldStyle
impl Sync for FieldStyle
impl Unpin for FieldStyle
impl UnsafeUnpin for FieldStyle
impl UnwindSafe for FieldStyle
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
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
Compare self to
key and return true if they are equal.§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
Checks if this value is equivalent to the given key. 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