#[non_exhaustive]pub enum TextComparison {
Equals,
NotEquals,
Contains,
StartsWith,
EndsWith,
}Expand description
How a RuleKind::Text compares.
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.
Equals
The field holds exactly the text.
NotEquals
The field holds something else.
Contains
The text is somewhere in the field.
StartsWith
The field starts with the text.
EndsWith
The field ends with the text.
Trait Implementations§
Source§impl Clone for TextComparison
impl Clone for TextComparison
Source§fn clone(&self) -> TextComparison
fn clone(&self) -> TextComparison
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 TextComparison
Source§impl Debug for TextComparison
impl Debug for TextComparison
impl Eq for TextComparison
Source§impl PartialEq for TextComparison
impl PartialEq for TextComparison
impl StructuralPartialEq for TextComparison
Auto Trait Implementations§
impl Freeze for TextComparison
impl RefUnwindSafe for TextComparison
impl Send for TextComparison
impl Sync for TextComparison
impl Unpin for TextComparison
impl UnsafeUnpin for TextComparison
impl UnwindSafe for TextComparison
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