pub struct ConvertOptions {
pub fallback_locale: Option<Locale>,
}Expand description
Conversion 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 Conversion::fallback_ids.
Trait Implementations§
Source§impl Clone for ConvertOptions
impl Clone for ConvertOptions
Source§fn clone(&self) -> ConvertOptions
fn clone(&self) -> ConvertOptions
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 ConvertOptions
impl Debug for ConvertOptions
Source§impl Default for ConvertOptions
impl Default for ConvertOptions
Source§fn default() -> ConvertOptions
fn default() -> ConvertOptions
Returns the “default value” for a type. Read more
impl Eq for ConvertOptions
Source§impl PartialEq for ConvertOptions
impl PartialEq for ConvertOptions
impl StructuralPartialEq for ConvertOptions
Auto Trait Implementations§
impl Freeze for ConvertOptions
impl RefUnwindSafe for ConvertOptions
impl Send for ConvertOptions
impl Sync for ConvertOptions
impl Unpin for ConvertOptions
impl UnsafeUnpin for ConvertOptions
impl UnwindSafe for ConvertOptions
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