projectfluent / fluent-rs

Rust implementation of Project Fluent
https://projectfluent.org
Apache License 2.0
1.07k stars 96 forks source link

Switch FluentBundle to store `R: Borrow<FluentResource> #113

Closed zbraniecki closed 5 years ago

zbraniecki commented 5 years ago

Spin off from #111.

Instead of trying to decide how to store resources, we can just store anything that can give us a reference to FluentResource.

This allows customers to choose if their FluentBundle owns resources, borrows them or takes Rc/Arc.