#[non_exhaustive]pub enum MatchVariant {
MatchesPattern(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MatchesPattern(String)
To be used for full regex matching. The regular expression is using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax), so to be used with RE2::FullMatch
Trait Implementations§
Source§impl Clone for MatchVariant
impl Clone for MatchVariant
Source§fn clone(&self) -> MatchVariant
fn clone(&self) -> MatchVariant
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 MatchVariant
impl Debug for MatchVariant
Source§impl PartialEq for MatchVariant
impl PartialEq for MatchVariant
impl StructuralPartialEq for MatchVariant
Auto Trait Implementations§
impl Freeze for MatchVariant
impl RefUnwindSafe for MatchVariant
impl Send for MatchVariant
impl Sync for MatchVariant
impl Unpin for MatchVariant
impl UnsafeUnpin for MatchVariant
impl UnwindSafe for MatchVariant
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