pub struct LocaleString { /* private fields */ }
Implementations§
Source§impl LocaleString
impl LocaleString
pub fn new(language_code: String) -> Self
pub fn new_strict(language_code: String) -> Self
pub fn with_language(&self, language_code: String) -> Self
pub fn with_territory(&self, territory: String) -> Self
pub fn with_code_set(&self, code_set: String) -> Self
pub fn with_modifier(&self, modifier: String) -> Self
pub fn with_modifiers<K, V>(&self, modifiers: HashMap<K, V>) -> Self
pub fn get_language_code(&self) -> String
pub fn get_territory(&self) -> Option<String>
pub fn get_code_set(&self) -> Option<String>
pub fn get_modifier(&self) -> Option<String>
Trait Implementations§
Source§impl Debug for LocaleString
impl Debug for LocaleString
Source§impl Display for LocaleString
impl Display for LocaleString
Source§impl FromStr for LocaleString
impl FromStr for LocaleString
Source§impl PartialEq for LocaleString
impl PartialEq for LocaleString
impl StructuralPartialEq for LocaleString
Auto Trait Implementations§
impl Freeze for LocaleString
impl RefUnwindSafe for LocaleString
impl Send for LocaleString
impl Sync for LocaleString
impl Unpin for LocaleString
impl UnwindSafe for LocaleString
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