Enum ErrorKind
#[non_exhaustive]
pub enum ErrorKind
The type of an error that occurred while building an Hir.
This error type is marked as non_exhaustive. This means that adding a
new variant is not considered a breaking change.
Variants
-
UnicodeNotAllowed This error occurs when a Unicode feature is used when Unicode support is disabled. For example
(?-u:\pL)would trigger this error.-
InvalidUtf8 This error occurs when translating a pattern that could match a byte sequence that isn't UTF-8 and
utf8was enabled.-
InvalidLineTerminator This error occurs when one uses a non-ASCII byte for a line terminator, but where Unicode mode is enabled and UTF-8 mode is disabled.
-
UnicodePropertyNotFound This occurs when an unrecognized Unicode property name could not be found.
-
UnicodePropertyValueNotFound This occurs when an unrecognized Unicode property value could not be found.
-
UnicodePerlClassNotFound This occurs when a Unicode-aware Perl character class (
\w,\sor\d) could not be found. This can occur when theunicode-perlcrate feature is not enabled.This occurs when the Unicode simple case mapping tables are not available, and the regular expression required Unicode aware case insensitivity.
Trait Implementations
impl Clone for ErrorKind
fn clone(&self) -> Self
impl Debug for ErrorKind
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for ErrorKind
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for ErrorKind
impl PartialEq for ErrorKind
fn eq(&self, other: &Self) -> bool
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations
impl<T> Any for ErrorKind
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ErrorKind
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ErrorKind
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ErrorKind
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ErrorKind
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for ErrorKind
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for ErrorKind
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for ErrorKind
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ErrorKind
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ErrorKind
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>