pub enum MetaPattern {
Any(AnyPattern),
And(AndPattern),
Or(OrPattern),
Not(NotPattern),
Repeat(RepeatPattern),
Capture(CapturePattern),
Search(SearchPattern),
Sequence(SequencePattern),
}
Expand description
Pattern for combining and modifying other patterns.
Variants§
Any(AnyPattern)
Always matches.
And(AndPattern)
Matches if all contained patterns match.
Or(OrPattern)
Matches if any contained pattern matches.
Not(NotPattern)
Matches if the inner pattern does not match.
Repeat(RepeatPattern)
Matches with repetition.
Capture(CapturePattern)
Captures a pattern match.
Search(SearchPattern)
Searches the entire dCBOR tree for matches.
Sequence(SequencePattern)
Matches a sequence of patterns in order.
Trait Implementations§
Source§impl Clone for MetaPattern
impl Clone for MetaPattern
Source§fn clone(&self) -> MetaPattern
fn clone(&self) -> MetaPattern
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 MetaPattern
impl Debug for MetaPattern
Source§impl Display for MetaPattern
impl Display for MetaPattern
Source§impl PartialEq for MetaPattern
impl PartialEq for MetaPattern
impl Eq for MetaPattern
impl StructuralPartialEq for MetaPattern
Auto Trait Implementations§
impl Freeze for MetaPattern
impl RefUnwindSafe for MetaPattern
impl Send for MetaPattern
impl Sync for MetaPattern
impl Unpin for MetaPattern
impl UnwindSafe for MetaPattern
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