[][src]Struct lcms2::Locale

pub struct Locale { /* fields omitted */ }

Language code from ISO-639/2 and region code from ISO-3166.

Implementations

impl Locale[src]

pub fn new(locale_name: &str) -> Self[src]

A string in format: 2-letter language name, separator, 2-letter country name, e.g. "en_US"

pub fn none() -> Self[src]

Default/unspecified/any locale

Trait Implementations

impl Clone for Locale[src]

impl Copy for Locale[src]

impl Debug for Locale[src]

impl Default for Locale[src]

impl Display for Locale[src]

impl Eq for Locale[src]

impl<'a> From<&'a str> for Locale[src]

impl Ord for Locale[src]

impl PartialEq<Locale> for Locale[src]

impl PartialOrd<Locale> for Locale[src]

impl StructuralEq for Locale[src]

impl StructuralPartialEq for Locale[src]

Auto Trait Implementations

impl RefUnwindSafe for Locale

impl Send for Locale

impl Sync for Locale

impl Unpin for Locale

impl UnwindSafe for Locale

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.