pub enum LocaleMode {
Strict,
Overlay,
}Expand description
Controls how missing scopes are handled when applying a locale overlay.
Variants§
Strict
Every scope in the base must appear in the locale. Missing scopes
produce a LocaleScopeMissing error.
Overlay
Missing scopes keep their base line tables unchanged.
Trait Implementations§
Source§impl Clone for LocaleMode
impl Clone for LocaleMode
Source§fn clone(&self) -> LocaleMode
fn clone(&self) -> LocaleMode
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 moreimpl Copy for LocaleMode
Source§impl Debug for LocaleMode
impl Debug for LocaleMode
impl Eq for LocaleMode
Source§impl PartialEq for LocaleMode
impl PartialEq for LocaleMode
Source§fn eq(&self, other: &LocaleMode) -> bool
fn eq(&self, other: &LocaleMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LocaleMode
Auto Trait Implementations§
impl Freeze for LocaleMode
impl RefUnwindSafe for LocaleMode
impl Send for LocaleMode
impl Sync for LocaleMode
impl Unpin for LocaleMode
impl UnsafeUnpin for LocaleMode
impl UnwindSafe for LocaleMode
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