Closed kgv closed 3 years ago
Thank you for your issue! That seems like good idea to me, as long you can continue to provide HashMap<String, V>
. If you’d like to contribute I’d accept a PR implementing this, otherwise I might work on it later in the week.
I suggest сhange signature
lookup_complete(... args: Option<&HashMap<String, FluentValue>>) -> String
to something likelookup_complete<T: AsRef<str> + 'static>(... args: Option<&HashMap<T, FluentValue>>) -> String
. This will remove unnecessary allocations from user code.playground