[−][src]Struct loon::Opts
Options (optional) for the translate call
Methods
impl<'a> Opts<'a>[src]
pub fn default_key(self, default_key: &'a str) -> Self[src]
If the key does not exist, fallback to using another key.
pub fn locale(self, locale: &'a str) -> Self[src]
Set the locale for this translate call.
pub fn vars<I: Into<String>, J: Display>(self, key: I, value: J) -> Self[src]
Set any variables to be inerpolated.
pub fn count(self, count: i32) -> Self[src]
Set the count for this translation.
Uses Rails style pluralization options: zero, one, other.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Opts<'a>
impl<'a> Send for Opts<'a>
impl<'a> Sync for Opts<'a>
impl<'a> Unpin for Opts<'a>
impl<'a> UnwindSafe for Opts<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
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> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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>,