pub struct Selector { /* private fields */ }Expand description
Label predicate. Construct via Selector::new and the
chainable builder methods, or parse from text with
Selector::parse. Evaluate against any Labels with
Selector::matches.
Implementations§
Source§impl Selector
impl Selector
Sourcepub fn parse(s: &str) -> Result<Self, SelectorParseError>
pub fn parse(s: &str) -> Result<Self, SelectorParseError>
Parse the text form:
type=phase,name=rampup,profile~=label_*,optimize_for=RECALL.
Whitespace around commas and operators is tolerated.
Sourcepub fn ne(self, key: &str, value: &str) -> Self
pub fn ne(self, key: &str, value: &str) -> Self
Push key != value — non-match (or absent) clause.
Trait Implementations§
impl Eq for Selector
impl StructuralPartialEq for Selector
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnsafeUnpin for Selector
impl UnwindSafe for Selector
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.