pub enum MatchType {
Equal,
NotEqual,
Regex,
NotRegex,
}Expand description
How a LabelMatcher compares a label value.
Variants§
Equal
=: the label value equals the matcher value.
NotEqual
!=: the label value differs from the matcher value.
Regex
=~: the label value matches the (fully anchored) regular expression.
NotRegex
!~: the label value does not match the regular expression.
Implementations§
Source§impl MatchType
impl MatchType
Sourcepub fn is_regex(&self) -> bool
pub fn is_regex(&self) -> bool
True for the two matcher kinds whose value is a regular expression.
Sourcepub fn is_negative(&self) -> bool
pub fn is_negative(&self) -> bool
True for the negated matcher kinds.
Trait Implementations§
impl Copy for MatchType
impl Eq for MatchType
impl StructuralPartialEq for MatchType
Auto Trait Implementations§
impl Forget for MatchType
impl Freeze for MatchType
impl Move for MatchType
impl RefUnwindSafe for MatchType
impl Send for MatchType
impl Sync for MatchType
impl Unpin for MatchType
impl UnsafeUnpin for MatchType
impl UnwindSafe for MatchType
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