pub struct Matchers {
pub matchers: Vec<Matcher>,
pub or_matchers: Vec<Vec<Matcher>>,
}
Fields§
§matchers: Vec<Matcher>
§or_matchers: Vec<Vec<Matcher>>
Implementations§
Source§impl Matchers
impl Matchers
pub fn empty() -> Self
pub fn one(matcher: Matcher) -> Self
pub fn new(matchers: Vec<Matcher>) -> Self
pub fn with_or_matchers(self, or_matchers: Vec<Vec<Matcher>>) -> Self
pub fn append(self, matcher: Matcher) -> Self
pub fn append_or(self, matcher: Matcher) -> Self
Sourcepub fn is_empty_matchers(&self) -> bool
pub fn is_empty_matchers(&self) -> bool
Vector selectors must either specify a name or at least one label matcher that does not match the empty string.
The following expression is illegal: {job=~“.*”} # Bad!
Sourcepub fn find_matchers(&self, name: &str) -> Vec<Matcher>
pub fn find_matchers(&self, name: &str) -> Vec<Matcher>
find matchers whose name equals the specified name
Trait Implementations§
impl Eq for Matchers
impl StructuralPartialEq for Matchers
Auto Trait Implementations§
impl Freeze for Matchers
impl RefUnwindSafe for Matchers
impl Send for Matchers
impl Sync for Matchers
impl Unpin for Matchers
impl UnwindSafe for Matchers
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§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.