[−][src]Struct fluent_templates::FluentLoader
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]
fn call<'reg: 'rc, 'rc>(
&self,
h: &Helper<'reg, 'rc>,
reg: &'reg Handlebars,
context: &'rc Context,
rcx: &mut RenderContext<'reg, 'rc>,
out: &mut dyn Output
) -> HelperResult
[src]
&self,
h: &Helper<'reg, 'rc>,
reg: &'reg Handlebars,
context: &'rc Context,
rcx: &mut RenderContext<'reg, 'rc>,
out: &mut dyn Output
) -> HelperResult
fn call_inner<'reg, 'rc>(
&self,
&Helper<'reg, 'rc>,
&'reg Registry<'reg>,
&'rc Context,
&mut RenderContext<'reg, 'rc>
) -> Result<Option<ScopedJson<'reg, 'rc>>, RenderError> where
'reg: 'rc,
[src]
&self,
&Helper<'reg, 'rc>,
&'reg Registry<'reg>,
&'rc Context,
&mut RenderContext<'reg, 'rc>
) -> Result<Option<ScopedJson<'reg, 'rc>>, RenderError> where
'reg: 'rc,
Auto Trait Implementations
impl<L> RefUnwindSafe for FluentLoader<L> where
L: RefUnwindSafe,
L: RefUnwindSafe,
impl<L> Send for FluentLoader<L> where
L: Send,
L: Send,
impl<L> Sync for FluentLoader<L> where
L: Sync,
L: Sync,
impl<L> Unpin for FluentLoader<L> where
L: Unpin,
L: Unpin,
impl<L> UnwindSafe for FluentLoader<L> where
L: UnwindSafe,
L: UnwindSafe,
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<F> Function for F where
F: Fn(&HashMap<String, Value, RandomState>) -> Result<Value, Error> + Sync + Send,
[src]
F: Fn(&HashMap<String, Value, RandomState>) -> Result<Value, Error> + Sync + Send,
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]
F: for<'rc, 'reg> Fn(&Helper<'reg, 'rc>, &'reg Registry<'reg>, &'rc Context, &mut RenderContext<'reg, 'rc>, &mut dyn Output) -> Result<(), RenderError>,
fn call<'reg, 'rc>(
&self,
h: &Helper<'reg, 'rc>,
r: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>,
out: &mut dyn Output
) -> Result<(), RenderError> where
'reg: 'rc,
[src]
&self,
h: &Helper<'reg, 'rc>,
r: &'reg Registry<'reg>,
ctx: &'rc Context,
rc: &mut RenderContext<'reg, 'rc>,
out: &mut dyn Output
) -> Result<(), RenderError> where
'reg: 'rc,
fn call_inner<'reg, 'rc>(
&self,
&Helper<'reg, 'rc>,
&'reg Registry<'reg>,
&'rc Context,
&mut RenderContext<'reg, 'rc>
) -> Result<Option<ScopedJson<'reg, 'rc>>, RenderError> where
'reg: 'rc,
[src]
&self,
&Helper<'reg, 'rc>,
&'reg Registry<'reg>,
&'rc Context,
&mut RenderContext<'reg, 'rc>
) -> Result<Option<ScopedJson<'reg, 'rc>>, RenderError> where
'reg: 'rc,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,