pub struct Tiers {
pub named: bool,
pub ignored: bool,
}Expand description
Which tiers are on screen. Both axes are sets, which is what makes an unanticipated combination expressible without a new mode.
Fields§
§named: boolWhether rule-named claims are shown.
ignored: boolWhether gitignore-fallback claims are shown.
Implementations§
Source§impl Tiers
impl Tiers
Sourcepub const ALL: [Self; 3]
pub const ALL: [Self; 3]
Every state this axis can be in, in the order t walks them.
Three rather than four: the empty set shows no claims at all, which is not a view but a blank screen, so the key steps over it rather than offering it. Every other combination of the two axes is reachable, because the kind axis is toggled member by member.
Trait Implementations§
impl Copy for Tiers
impl Eq for Tiers
impl StructuralPartialEq for Tiers
Auto Trait Implementations§
impl Freeze for Tiers
impl RefUnwindSafe for Tiers
impl Send for Tiers
impl Sync for Tiers
impl Unpin for Tiers
impl UnsafeUnpin for Tiers
impl UnwindSafe for Tiers
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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