pub enum KnownValuePattern {
    Any,
    Value(KnownValue),
    Name(String),
    Regex(Regex),
}Expand description
Pattern for matching known values.
Variants§
Any
Matches any known value.
Value(KnownValue)
Matches the specific known value.
Name(String)
Matches the name of a known value.
Regex(Regex)
Matches the regex for a known value name.
Implementations§
Source§impl KnownValuePattern
 
impl KnownValuePattern
Trait Implementations§
Source§impl Clone for KnownValuePattern
 
impl Clone for KnownValuePattern
Source§fn clone(&self) -> KnownValuePattern
 
fn clone(&self) -> KnownValuePattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for KnownValuePattern
 
impl Debug for KnownValuePattern
Source§impl Display for KnownValuePattern
 
impl Display for KnownValuePattern
Source§impl Hash for KnownValuePattern
 
impl Hash for KnownValuePattern
Source§impl PartialEq for KnownValuePattern
 
impl PartialEq for KnownValuePattern
impl Eq for KnownValuePattern
Auto Trait Implementations§
impl Freeze for KnownValuePattern
impl RefUnwindSafe for KnownValuePattern
impl Send for KnownValuePattern
impl Sync for KnownValuePattern
impl Unpin for KnownValuePattern
impl UnwindSafe for KnownValuePattern
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