[][src]Struct fluent_templates::FluentLoader

pub struct FluentLoader<L> { /* fields omitted */ }

A Loader agnostic container type with optional trait implementations for integrating with different libraries.

Implementations

impl<L> FluentLoader<L>[src]

pub fn new(loader: L) -> Self[src]

Create a new FluentLoader.

pub fn with_default_lang(self, lang: LanguageIdentifier) -> Self[src]

Set default language for this FluentLoader. Template engines can use this value when rendering translations. Sofar this feature is only implemented for Tera.

Trait Implementations

impl<L: Loader + Send + Sync> Function for FluentLoader<L>[src]

impl<L: Loader + Send + Sync> HelperDef for FluentLoader<L>[src]

Auto Trait Implementations

impl<L> RefUnwindSafe for FluentLoader<L> where
    L: RefUnwindSafe

impl<L> Send for FluentLoader<L> where
    L: Send

impl<L> Sync for FluentLoader<L> where
    L: Sync

impl<L> Unpin for FluentLoader<L> where
    L: Unpin

impl<L> UnwindSafe for FluentLoader<L> where
    L: UnwindSafe

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<F> Function for F where
    F: Fn(&HashMap<String, Value, RandomState>) -> Result<Value, Error> + Sync + Send
[src]

impl<F> HelperDef for F where
    F: for<'rc, 'reg> Fn(&Helper<'reg, 'rc>, &'reg Registry<'reg>, &'rc Context, &mut RenderContext<'reg, 'rc>, &mut dyn Output) -> Result<(), RenderError>, 
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,