pub enum Locale {
POSIX,
Path(PathBuf),
String(LocaleString),
}Expand description
This enumeration represents the three types of Locale specifiers commonly used by operating systems.
Variants§
POSIX
The minimal locale specified by POSIX. Can be spoecified with the string “POSIX” or simply “C”.
Path(PathBuf)
A path to a locale specification, this library does not vslidste
whether the path exists, simply that it is a valid PathBuf..
String(LocaleString)
A locale string, parsed into a structured LocaleString form.
Trait Implementations§
impl StructuralPartialEq for Locale
Auto Trait Implementations§
impl Freeze for Locale
impl RefUnwindSafe for Locale
impl Send for Locale
impl Sync for Locale
impl Unpin for Locale
impl UnwindSafe for Locale
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