pub enum FluentParseMode {
Aggressive,
Conservative,
Clean,
}Expand description
The mode to use when parsing Fluent files.
Variants§
Aggressive
Overwrite existing translations.
Conservative
Preserve existing translations.
Clean
Clean orphan keys (unused in code) but preserve used translations.
Trait Implementations§
Source§impl Clone for FluentParseMode
impl Clone for FluentParseMode
Source§fn clone(&self) -> FluentParseMode
fn clone(&self) -> FluentParseMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FluentParseMode
impl Debug for FluentParseMode
Source§impl Default for FluentParseMode
impl Default for FluentParseMode
Source§fn default() -> FluentParseMode
fn default() -> FluentParseMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for FluentParseMode
impl PartialEq for FluentParseMode
Source§impl ValueEnum for FluentParseMode
impl ValueEnum for FluentParseMode
Source§fn value_variants<'a>() -> &'a [FluentParseMode]
fn value_variants<'a>() -> &'a [FluentParseMode]
All possible argument values, in display order.
Source§fn to_possible_value<'a>(&self) -> Option<PossibleValue>
fn to_possible_value<'a>(&self) -> Option<PossibleValue>
The canonical argument value. Read more
impl StructuralPartialEq for FluentParseMode
Auto Trait Implementations§
impl Freeze for FluentParseMode
impl RefUnwindSafe for FluentParseMode
impl Send for FluentParseMode
impl Sync for FluentParseMode
impl Unpin for FluentParseMode
impl UnwindSafe for FluentParseMode
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