[][src]Struct fluent_handlebars_runtime::FluentHandlebars

pub struct FluentHandlebars<L: Loader + Send + Sync> { /* fields omitted */ }

A lightweight newtype wrapper around FluentLoader that implements the HelperDef trait in a different way. It resolves Fluent placeables by looking them up in the data hash provided to Handlebars.render_template() at runtime.

Implementations

impl<L: Loader + Send + Sync> FluentHandlebars<L>[src]

pub fn new(ldr: L) -> FluentHandlebars<L>[src]

Trait Implementations

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

Auto Trait Implementations

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

impl<L> Send for FluentHandlebars<L>

impl<L> Sync for FluentHandlebars<L>

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

impl<L> UnwindSafe for FluentHandlebars<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> HelperDef for F where
    F: for<'reg, 'rc> 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.