[][src]Struct fluent_templates::ArcLoaderBuilder

pub struct ArcLoaderBuilder<'a, 'b> { /* fields omitted */ }

A builder pattern struct for constructing ArcLoaders.

Implementations

impl<'a, 'b> ArcLoaderBuilder<'a, 'b>[src]

pub fn shared_resources(self, shared: Option<&'b [PathBuf]>) -> Self[src]

Adds Fluent resources that are shared across all localizations.

pub fn customize(
    self,
    customize: fn(_: &mut FluentBundle<Arc<FluentResource>>)
) -> Self
[src]

Allows you to customise each FluentBundle.

pub fn build(self) -> Result<ArcLoader, Box<dyn Error>>[src]

Constructs an ArcLoader from the settings provided.

Auto Trait Implementations

impl<'a, 'b> RefUnwindSafe for ArcLoaderBuilder<'a, 'b>

impl<'a, 'b> Send for ArcLoaderBuilder<'a, 'b>

impl<'a, 'b> Sync for ArcLoaderBuilder<'a, 'b>

impl<'a, 'b> Unpin for ArcLoaderBuilder<'a, 'b>

impl<'a, 'b> UnwindSafe for ArcLoaderBuilder<'a, 'b>

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<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.