pub struct StrictLocaleString(/* private fields */);Expand description
A StringLocaleString is a wrapper around LocaleString.
Trait Implementations§
Source§impl Debug for StrictLocaleString
impl Debug for StrictLocaleString
Source§impl Display for StrictLocaleString
impl Display for StrictLocaleString
Source§impl FromStr for StrictLocaleString
impl FromStr for StrictLocaleString
Source§impl LocaleIdentifier for StrictLocaleString
impl LocaleIdentifier for StrictLocaleString
Source§fn new(language_code: String) -> LocaleResult<Self>
fn new(language_code: String) -> LocaleResult<Self>
Construct a new identifier with the given language code only.
Source§fn with_language(&self, language_code: String) -> LocaleResult<Self>
fn with_language(&self, language_code: String) -> LocaleResult<Self>
Return a new identifier based on
self with a new language code.Source§fn with_territory(&self, territory: String) -> LocaleResult<Self>
fn with_territory(&self, territory: String) -> LocaleResult<Self>
Return a new identifier based on
self with a new territory code.Source§fn with_code_set(&self, code_set: String) -> LocaleResult<Self>
fn with_code_set(&self, code_set: String) -> LocaleResult<Self>
Return a new identifier based on
self with a new code_set code.Source§fn with_modifier(&self, modifier: String) -> LocaleResult<Self>
fn with_modifier(&self, modifier: String) -> LocaleResult<Self>
Return a new identifier based on
self with a new modifier string.Source§fn with_modifiers<K, V>(&self, modifiers: HashMap<K, V>) -> LocaleResult<Self>
fn with_modifiers<K, V>(&self, modifiers: HashMap<K, V>) -> LocaleResult<Self>
Return a new identifier based on
self with a new modifier string.Source§fn language_code(&self) -> String
fn language_code(&self) -> String
Return the current language code.
Source§impl PartialEq for StrictLocaleString
impl PartialEq for StrictLocaleString
impl StructuralPartialEq for StrictLocaleString
Auto Trait Implementations§
impl Freeze for StrictLocaleString
impl RefUnwindSafe for StrictLocaleString
impl Send for StrictLocaleString
impl Sync for StrictLocaleString
impl Unpin for StrictLocaleString
impl UnwindSafe for StrictLocaleString
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