pub struct LocaleInfo {
pub language: Option<String>,
pub territory: Option<String>,
pub codeset: Option<String>,
pub modifier: Option<String>,
}Expand description
Locale information.
Fields§
§language: Option<String>Language code (e.g., “en”).
territory: Option<String>Territory/country (e.g., “US”).
codeset: Option<String>Codeset (e.g., “UTF-8”).
modifier: Option<String>Modifier (e.g., “euro”).
Implementations§
Trait Implementations§
Source§impl Clone for LocaleInfo
impl Clone for LocaleInfo
Source§fn clone(&self) -> LocaleInfo
fn clone(&self) -> LocaleInfo
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 moreSource§impl Debug for LocaleInfo
impl Debug for LocaleInfo
Source§impl Default for LocaleInfo
impl Default for LocaleInfo
Source§fn default() -> LocaleInfo
fn default() -> LocaleInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocaleInfo
impl RefUnwindSafe for LocaleInfo
impl Send for LocaleInfo
impl Sync for LocaleInfo
impl Unpin for LocaleInfo
impl UnsafeUnpin for LocaleInfo
impl UnwindSafe for LocaleInfo
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