[][src]Struct rstext::Locale

pub struct Locale { /* fields omitted */ }

Implementations

impl Locale[src]

pub fn new<P: AsRef<Path>, S: AsRef<str>>(dir: P, locale: S) -> Result<Self>[src]

pub fn load<S: AsRef<str>>(&mut self, domain: S) -> Result<&Po>[src]

pub fn domain<S: AsRef<str>>(&self, domain: S) -> Option<&Po>[src]

pub fn getd<S: AsRef<str>, S2: AsRef<str>>(
    &self,
    domain: S,
    id: S2
) -> Option<&str>
[src]

pub fn code(&self) -> &OsStr[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, 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.