Enum icu::experimental::unicodeset_parse::ParseErrorKind
source · #[non_exhaustive]pub enum ParseErrorKind {
UnexpectedChar(char),
UnknownProperty,
UnknownVariable,
UnexpectedVariable,
Eof,
Internal,
Unimplemented,
InvalidEscape,
}
Expand description
The kind of error that occurred.
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.
UnexpectedChar(char)
An unexpected character was encountered. This variant implies the other variants
(notably UnknownProperty
and Unimplemented
) do not apply.
UnknownProperty
The property name or value is unknown. For property names, make sure you use the spelling defined in ECMA-262.
UnknownVariable
A reference to an unknown variable.
UnexpectedVariable
A variable of a certain type occurring in an unexpected context.
Eof
The source is an incomplete unicode set.
Internal
Something unexpected went wrong with our code. Please file a bug report on GitHub.
Unimplemented
The provided syntax is not supported by us. Note that unknown properties will return the
UnknownProperty
variant, not this one.
InvalidEscape
The provided escape sequence is not a valid Unicode code point or represents too many code points.
Trait Implementations§
source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
source§fn clone(&self) -> ParseErrorKind
fn clone(&self) -> ParseErrorKind
Returns a copy of the value. Read more
1.0.0 · 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 ParseErrorKind
impl Debug for ParseErrorKind
source§impl From<ParseErrorKind> for ParseError
impl From<ParseErrorKind> for ParseError
source§fn from(kind: ParseErrorKind) -> ParseError
fn from(kind: ParseErrorKind) -> ParseError
Converts to this type from the input type.
source§impl PartialEq for ParseErrorKind
impl PartialEq for ParseErrorKind
impl Copy for ParseErrorKind
impl Eq for ParseErrorKind
impl StructuralPartialEq for ParseErrorKind
Auto Trait Implementations§
impl Freeze for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more