Struct fluent_fallback::Bundles
source · pub struct Bundles<G>(_)
where
G: BundleGenerator;
Implementations
sourceimpl<G> Bundles<G>where
G: BundleGenerator,
G::Iter: BundleIterator,
impl<G> Bundles<G>where
G: BundleGenerator,
G::Iter: BundleIterator,
pub fn prefetch_sync(&self)
sourceimpl<G> Bundles<G>where
G: BundleGenerator,
G::Stream: BundleStream,
impl<G> Bundles<G>where
G: BundleGenerator,
G::Stream: BundleStream,
pub async fn prefetch_async(&self)
sourceimpl<G> Bundles<G>where
G: BundleGenerator,
impl<G> Bundles<G>where
G: BundleGenerator,
pub fn new<P>(
sync: bool,
res_ids: FxHashSet<ResourceId>,
generator: &G,
provider: &P
) -> Selfwhere
G: BundleGenerator<LocalesIter = P::Iter>,
P: LocalesProvider,
pub async fn format_value<'l>(
&'l self,
id: &'l str,
args: Option<&'l FluentArgs<'_>>,
errors: &mut Vec<LocalizationError>
) -> Option<Cow<'l, str>>
pub async fn format_values<'l>(
&'l self,
keys: &'l [L10nKey<'l>],
errors: &mut Vec<LocalizationError>
) -> Vec<Option<Cow<'l, str>>>
pub async fn format_messages<'l>(
&'l self,
keys: &'l [L10nKey<'l>],
errors: &mut Vec<LocalizationError>
) -> Vec<Option<L10nMessage<'l>>>
pub fn format_value_sync<'l>(
&'l self,
id: &'l str,
args: Option<&'l FluentArgs<'_>>,
errors: &mut Vec<LocalizationError>
) -> Result<Option<Cow<'l, str>>, LocalizationError>
pub fn format_values_sync<'l>(
&'l self,
keys: &'l [L10nKey<'l>],
errors: &mut Vec<LocalizationError>
) -> Result<Vec<Option<Cow<'l, str>>>, LocalizationError>
pub fn format_messages_sync<'l>(
&'l self,
keys: &'l [L10nKey<'l>],
errors: &mut Vec<LocalizationError>
) -> Result<Vec<Option<L10nMessage<'l>>>, LocalizationError>
Auto Trait Implementations
impl<G> !RefUnwindSafe for Bundles<G>
impl<G> !Send for Bundles<G>
impl<G> !Sync for Bundles<G>
impl<G> Unpin for Bundles<G>where
<G as BundleGenerator>::Iter: Unpin,
<G as BundleGenerator>::Resource: Unpin,
<G as BundleGenerator>::Stream: Unpin,
impl<G> !UnwindSafe for Bundles<G>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more