[][src]Struct simple_locale::string::LocaleString

pub struct LocaleString { /* fields omitted */ }

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]

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]

impl Display for LocaleString[src]

impl Debug for LocaleString[src]

impl FromStr for LocaleString[src]

type Err = ParseError

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]