What are the R and M type parameters in FluentBundle?

I'm browsing the Fluent docs and found this:

pub struct FluentBundle<R, M> {
    pub locales: Vec<LanguageIdentifier, Global>,
    // some fields omitted

What do I need to assign to these R and M parameters?

It looks like only R is required.

If you look at the full crate-private definition, you can observe that R is the resource type and M is the memoizer type (it's apparently passed to the formatter – I don't use fluent_bundle but being generic over the memoizer doesn't seem surprising.)

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.