pub enum TextPattern {
    Any,
    Value(String),
    Regex(Regex),
}Expand description
Pattern for matching text values in dCBOR.
Variants§
Any
Matches any text.
Value(String)
Matches the specific text.
Regex(Regex)
Matches the regex for a text.
Implementations§
Source§impl TextPattern
 
impl TextPattern
Trait Implementations§
Source§impl Clone for TextPattern
 
impl Clone for TextPattern
Source§fn clone(&self) -> TextPattern
 
fn clone(&self) -> TextPattern
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 TextPattern
 
impl Debug for TextPattern
Source§impl Display for TextPattern
 
impl Display for TextPattern
Source§impl Hash for TextPattern
 
impl Hash for TextPattern
Source§impl PartialEq for TextPattern
 
impl PartialEq for TextPattern
impl Eq for TextPattern
Auto Trait Implementations§
impl Freeze for TextPattern
impl RefUnwindSafe for TextPattern
impl Send for TextPattern
impl Sync for TextPattern
impl Unpin for TextPattern
impl UnwindSafe for TextPattern
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