[−][src]Struct simple_locale::string::LocaleString
Methods
impl LocaleString
[src]
pub fn new(language_code: String) -> Self
[src]
pub fn new_strict(language_code: String) -> Self
[src]
pub fn with_language(&self, language_code: String) -> Self
[src]
pub fn with_territory(&self, territory: String) -> Self
[src]
pub fn with_code_set(&self, code_set: String) -> Self
[src]
pub fn with_modifier(&self, modifier: String) -> Self
[src]
pub fn with_modifiers<K, V>(&self, modifiers: HashMap<K, V>) -> Self where
K: Display,
V: Display,
[src]
K: Display,
V: Display,
pub fn get_language_code(&self) -> String
[src]
pub fn get_territory(&self) -> Option<String>
[src]
pub fn get_code_set(&self) -> Option<String>
[src]
pub fn get_modifier(&self) -> Option<String>
[src]
Trait Implementations
impl PartialEq<LocaleString> for LocaleString
[src]
fn eq(&self, other: &LocaleString) -> bool
[src]
fn ne(&self, other: &LocaleString) -> bool
[src]
impl Display for LocaleString
[src]
impl Debug for LocaleString
[src]
impl FromStr for LocaleString
[src]
Auto Trait Implementations
impl Send for LocaleString
impl Unpin for LocaleString
impl Sync for LocaleString
impl UnwindSafe for LocaleString
impl RefUnwindSafe for LocaleString
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,