#[non_exhaustive]pub enum CaseMatching {
Respect,
Ignore,
Smart,
}Expand description
How to treat a case mismatch between two characters.
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.
Respect
Characters never match their case folded version (a != A).
Ignore
Characters always match their case folded version (a == A).
Smart
Trait Implementations§
Source§impl Clone for CaseMatching
impl Clone for CaseMatching
Source§fn clone(&self) -> CaseMatching
fn clone(&self) -> CaseMatching
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 CaseMatching
impl Debug for CaseMatching
Source§impl Default for CaseMatching
impl Default for CaseMatching
Source§fn default() -> CaseMatching
fn default() -> CaseMatching
Returns the “default value” for a type. Read more
Source§impl PartialEq for CaseMatching
impl PartialEq for CaseMatching
impl Copy for CaseMatching
impl Eq for CaseMatching
impl StructuralPartialEq for CaseMatching
Auto Trait Implementations§
impl Freeze for CaseMatching
impl RefUnwindSafe for CaseMatching
impl Send for CaseMatching
impl Sync for CaseMatching
impl Unpin for CaseMatching
impl UnwindSafe for CaseMatching
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