pub enum CaseSensitivity {
Sensitive,
Insensitive,
Smart,
}Expand description
Case sensitivity modes for search.
This defines the different types of case sensitivity that can be used when searching for the characters of a query in a candidate string.
Variants§
Sensitive
The search is case-sensitive. For a successful match the case of the letters in the candidate must exactly match the case of the letters in the query.
Insensitive
The search is case-insensitive. In this mode, the case of letters is ignored, allowing for matches regardless of whether the letters in the query and candidate are upper or lower case.
Smart
In this mode, the case-sensitivity of the search is determined dynamically based on the letters of the query. If the query contains one or more uppercase letters the search is treated as case-sensitive, otherwise it’s case-insensitive.
Trait Implementations§
Source§impl Clone for CaseSensitivity
impl Clone for CaseSensitivity
Source§fn clone(&self) -> CaseSensitivity
fn clone(&self) -> CaseSensitivity
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 CaseSensitivity
impl Debug for CaseSensitivity
Source§impl Default for CaseSensitivity
impl Default for CaseSensitivity
Source§fn default() -> CaseSensitivity
fn default() -> CaseSensitivity
Returns the “default value” for a type. Read more
impl Copy for CaseSensitivity
Auto Trait Implementations§
impl Freeze for CaseSensitivity
impl RefUnwindSafe for CaseSensitivity
impl Send for CaseSensitivity
impl Sync for CaseSensitivity
impl Unpin for CaseSensitivity
impl UnwindSafe for CaseSensitivity
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