pub enum FoldLocale {
Root,
Turkic,
}Expand description
The locale tailoring that changes how text folds.
Only Turkish and Azerbaijani change folding (the dotted/dotless i), so this is not a full locale — carrying one would invite the reader to expect tailoring that does not exist.
Variants§
Root
Untailored — the und root locale.
Turkic
Turkish and Azerbaijani: I folds to ı and İ to i, and the dotless ı is a
letter in its own right rather than an i wearing a missing dot.
Implementations§
Source§impl FoldLocale
impl FoldLocale
Sourcepub fn from_tag(tag: &str) -> FoldLocale
pub fn from_tag(tag: &str) -> FoldLocale
Resolve a BCP-47-ish language tag.
A tag that is empty, unknown or malformed falls back to FoldLocale::Root. It
never fails: the tag comes from a writer’s project settings, and a typo there must
degrade to an untailored search, not break searching.
Trait Implementations§
Source§impl Clone for FoldLocale
impl Clone for FoldLocale
Source§fn clone(&self) -> FoldLocale
fn clone(&self) -> FoldLocale
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 FoldLocale
Source§impl Debug for FoldLocale
impl Debug for FoldLocale
Source§impl Default for FoldLocale
impl Default for FoldLocale
Source§fn default() -> FoldLocale
fn default() -> FoldLocale
Returns the “default value” for a type. Read more
impl Eq for FoldLocale
Source§impl Hash for FoldLocale
impl Hash for FoldLocale
Source§impl PartialEq for FoldLocale
impl PartialEq for FoldLocale
impl StructuralPartialEq for FoldLocale
Auto Trait Implementations§
impl Freeze for FoldLocale
impl RefUnwindSafe for FoldLocale
impl Send for FoldLocale
impl Sync for FoldLocale
impl Unpin for FoldLocale
impl UnsafeUnpin for FoldLocale
impl UnwindSafe for FoldLocale
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.