[][src]Struct xliff::t::T

pub struct T { /* fields omitted */ }

Translation helper

Methods

impl T[src]

pub fn load(path: &PathBuf) -> Self[src]

Initializes a repository for the specified translation format.

pub fn t(&self, domain: Option<&str>, key: &str) -> Option<&Unit>[src]

Returns the first translation matching the provided key. Optionally a domain value may be used to specify the xliff file address.

Auto Trait Implementations

impl Unpin for T

impl Sync for T

impl Send for T

impl RefUnwindSafe for T

impl UnwindSafe for T

Blanket Implementations

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.

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]