pub enum ParseError {
EmptyString,
PosixUnsupported,
RegexFailure,
InvalidLanguageCode,
InvalidTerritoryCode,
InvalidCodeSet,
InvalidModifier,
InvalidPath,
}Expand description
Errors possibly returned from from_str().
Variants§
EmptyString
The empty string is not a valid identifier.
PosixUnsupported
The value “POSIX” or “C” is not a locale identifier in this context.
RegexFailure
The string failed to match the internal regular expression(s).
InvalidLanguageCode
The provided language code was not valid.
InvalidTerritoryCode
The provided territory code was not valid.
InvalidCodeSet
The provided code set name was not valid.
InvalidModifier
The provided modifier string was not valid.
InvalidPath
The provided file system path was not valid.
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl PartialEq for ParseError
impl PartialEq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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