#[repr(u8)]pub enum PatternOperator {
StartsWith = 0,
EndsWith = 1,
Contains = 2,
Regex = 3,
}Expand description
How a pattern rule matches its text.
Variants§
StartsWith = 0
The text starts with the pattern.
EndsWith = 1
The text ends with the pattern.
Contains = 2
The text contains the pattern.
Regex = 3
The text matches the regular expression.
Trait Implementations§
Source§impl Clone for PatternOperator
impl Clone for PatternOperator
Source§fn clone(&self) -> PatternOperator
fn clone(&self) -> PatternOperator
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 PatternOperator
Source§impl Debug for PatternOperator
impl Debug for PatternOperator
impl Eq for PatternOperator
Source§impl<'ʄ> Facet<'ʄ> for PatternOperator
impl<'ʄ> Facet<'ʄ> for PatternOperator
Source§impl PartialEq for PatternOperator
impl PartialEq for PatternOperator
impl StructuralPartialEq for PatternOperator
Auto Trait Implementations§
impl Freeze for PatternOperator
impl RefUnwindSafe for PatternOperator
impl Send for PatternOperator
impl Sync for PatternOperator
impl Unpin for PatternOperator
impl UnsafeUnpin for PatternOperator
impl UnwindSafe for PatternOperator
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.