pub struct Bundles<G>(/* private fields */)
where
G: BundleGenerator;
Implementations§
Source§impl<G> Bundles<G>
impl<G> Bundles<G>
pub fn prefetch_sync(&self)
Source§impl<G> Bundles<G>
impl<G> Bundles<G>
pub async fn prefetch_async(&self)
Source§impl<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, ) -> Self
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> !Freeze for Bundles<G>
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>::Resource: Unpin,
<G as BundleGenerator>::Iter: Unpin,
<G as BundleGenerator>::Stream: Unpin,
impl<G> !UnwindSafe for Bundles<G>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more