#[non_exhaustive]#[repr(C)]pub enum LocaleParseError {
Unknown = 0,
Language = 1,
Subtag = 2,
Extension = 3,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for LocaleParseError
impl Clone for LocaleParseError
Source§fn clone(&self) -> LocaleParseError
fn clone(&self) -> LocaleParseError
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 LocaleParseError
impl Debug for LocaleParseError
Source§impl From<ParseError> for LocaleParseError
impl From<ParseError> for LocaleParseError
Source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LocaleParseError
impl PartialEq for LocaleParseError
Source§fn eq(&self, other: &LocaleParseError) -> bool
fn eq(&self, other: &LocaleParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LocaleParseError
impl Eq for LocaleParseError
impl StructuralPartialEq for LocaleParseError
Auto Trait Implementations§
impl Freeze for LocaleParseError
impl RefUnwindSafe for LocaleParseError
impl Send for LocaleParseError
impl Sync for LocaleParseError
impl Unpin for LocaleParseError
impl UnsafeUnpin for LocaleParseError
impl UnwindSafe for LocaleParseError
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