pub struct FoldSpec {
pub case_sensitive: bool,
pub diacritic_sensitive: bool,
pub locale: FoldLocale,
}Expand description
What a fold is allowed to fold away.
Fields§
§case_sensitive: boolfalse (the default) folds case.
diacritic_sensitive: boolfalse (the default) folds diacritics — steps 3–5 above.
locale: FoldLocaleHow to fold, never whether to. The toggles above stay global across a search; the language only decides what folding means in this particular scene — or the same checkbox would mean different things in different chapters of one book.
Trait Implementations§
impl Copy for FoldSpec
impl Eq for FoldSpec
impl StructuralPartialEq for FoldSpec
Auto Trait Implementations§
impl Freeze for FoldSpec
impl RefUnwindSafe for FoldSpec
impl Send for FoldSpec
impl Sync for FoldSpec
impl Unpin for FoldSpec
impl UnsafeUnpin for FoldSpec
impl UnwindSafe for FoldSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.