pub struct FluentZeroBuilder { /* private fields */ }Expand description
A builder to configure and generate the static cache code for fluent-zero.
Implementations§
Source§impl FluentZeroBuilder
impl FluentZeroBuilder
Sourcepub fn new<P: AsRef<Path>>(locales_dir_path: P) -> Self
pub fn new<P: AsRef<Path>>(locales_dir_path: P) -> Self
Creates a new builder pointing to the directory containing locale subdirectories.
Sourcepub fn export_charset<P: AsRef<Path>>(self, dest: P) -> Self
pub fn export_charset<P: AsRef<Path>>(self, dest: P) -> Self
Opt-in to exporting a deterministic text file containing all unique
characters used across all .ftl files. This is highly recommended
for font subsetting in WASM/Game GUI environments.
Auto Trait Implementations§
impl Freeze for FluentZeroBuilder
impl RefUnwindSafe for FluentZeroBuilder
impl Send for FluentZeroBuilder
impl Sync for FluentZeroBuilder
impl Unpin for FluentZeroBuilder
impl UnsafeUnpin for FluentZeroBuilder
impl UnwindSafe for FluentZeroBuilder
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