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.
§Arguments
locales_dir_path- Relative path to the folder 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 in this crate and its dependencies.
Dependency Aggregation: This natively aggregates characters from dependencies using Cargo’s standard IPC. No metadata scraping or tree walking is required.
Trait Implementations§
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