pub struct EmitOptions {
pub fallback_locale: Option<Locale>,
}Expand description
Emission options: opt-in fallback for missing target-locale mappings.
Fields§
§fallback_locale: Option<Locale>When a canonical identity has no spelling for the target locale, its
spelling in this declared locale is used instead. None (the default)
keeps missing mappings failing explicitly. The fallback choice is
visible in EmitOutput::fallback_ids.
Trait Implementations§
Source§impl Clone for EmitOptions
impl Clone for EmitOptions
Source§fn clone(&self) -> EmitOptions
fn clone(&self) -> EmitOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EmitOptions
impl Debug for EmitOptions
Source§impl Default for EmitOptions
impl Default for EmitOptions
Source§fn default() -> EmitOptions
fn default() -> EmitOptions
Returns the “default value” for a type. Read more
impl Eq for EmitOptions
Source§impl PartialEq for EmitOptions
impl PartialEq for EmitOptions
impl StructuralPartialEq for EmitOptions
Auto Trait Implementations§
impl Freeze for EmitOptions
impl RefUnwindSafe for EmitOptions
impl Send for EmitOptions
impl Sync for EmitOptions
impl Unpin for EmitOptions
impl UnsafeUnpin for EmitOptions
impl UnwindSafe for EmitOptions
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