Enum language_tags::ValidationError [−][src]
pub enum ValidationError { DuplicateVariant, DuplicateExtension, MultipleExtendedLanguageSubtags, PrimaryLanguageNotInRegistry, ExtendedLanguageNotInRegistry, ScriptNotInRegistry, RegionNotInRegistry, VariantNotInRegistry, WrongExtendedLanguagePrefix, WrongVariantPrefix, }
Expand description
Errors returned by the LanguageTag
validation
Variants
The same variant subtag is only allowed once in a tag.
The same extension subtag is only allowed once in a tag before the private use part.
only one extended language subtag is allowed
The primary language is not in the IANA Language Subtag Registry
The extended language is not in the IANA Language Subtag Registry
The script is not in the IANA Language Subtag Registry
The region is not in the IANA Language Subtag Registry
A variant is not in the IANA Language Subtag Registry
The primary language is not the expected extended language prefix from the IANA Language Subtag Registry
The language tag has not one of the expected variant prefix from the IANA Language Subtag Registry
Trait Implementations
impl Clone for ValidationError
[src]
impl Clone for ValidationError
[src]fn clone(&self) -> ValidationError
[src]
fn clone(&self) -> ValidationError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ValidationError
[src]
impl Debug for ValidationError
[src]impl Display for ValidationError
[src]
impl Display for ValidationError
[src]impl Error for ValidationError
[src]
impl Error for ValidationError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl PartialEq<ValidationError> for ValidationError
[src]
impl PartialEq<ValidationError> for ValidationError
[src]impl Eq for ValidationError
[src]
impl StructuralEq for ValidationError
[src]
impl StructuralPartialEq for ValidationError
[src]
Auto Trait Implementations
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more