pub trait BundleGenerator {
type Resource: Borrow<FluentResource>;
type LocalesIter: Iterator<Item = LanguageIdentifier>;
type Iter: Iterator<Item = FluentBundleResult<Self::Resource>>;
type Stream: Stream<Item = FluentBundleResult<Self::Resource>>;
// Provided methods
fn bundles_iter(
&self,
_locales: Self::LocalesIter,
_res_ids: FxHashSet<ResourceId>,
) -> Self::Iter { ... }
fn bundles_stream(
&self,
_locales: Self::LocalesIter,
_res_ids: FxHashSet<ResourceId>,
) -> Self::Stream { ... }
}Required Associated Types§
type Resource: Borrow<FluentResource>
type LocalesIter: Iterator<Item = LanguageIdentifier>
type Iter: Iterator<Item = FluentBundleResult<Self::Resource>>
type Stream: Stream<Item = FluentBundleResult<Self::Resource>>
Provided Methods§
fn bundles_iter( &self, _locales: Self::LocalesIter, _res_ids: FxHashSet<ResourceId>, ) -> Self::Iter
fn bundles_stream( &self, _locales: Self::LocalesIter, _res_ids: FxHashSet<ResourceId>, ) -> Self::Stream
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".