Skip to main content

BundleCollection

Trait BundleCollection 

Source
pub trait BundleCollection: Sync + Send {
    // Required method
    fn get_bundle(
        &self,
        lang: &str,
    ) -> Option<&ConcurrentFluentBundle<FluentResource>>;
}
Expand description

A collection capable of retrieving a ConcurrentFluentBundle by language key.

Required Methods§

Source

fn get_bundle( &self, lang: &str, ) -> Option<&ConcurrentFluentBundle<FluentResource>>

Retrieves the bundle for the specified language.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BundleCollection for Map<&'static str, &'static LazyLock<ConcurrentFluentBundle<FluentResource>>>

Source§

impl<S: BuildHasher + Sync + Send> BundleCollection for HashMap<String, ConcurrentFluentBundle<FluentResource>, S>

Implementors§