Enum regex::Error

pub enum Error {    
    Syntax(String),
    CompiledTooBig(usize),
    /* some fields hidden */
}
Documentation

An error that occurred during parsing or compiling a regular expression.

Variants

Syntax(String)

A syntax error.

CompiledTooBig(usize)
usize

The compiled program exceeded the set size limit. The argument is the size limit imposed.

Trait Implementations

impl Clone for Error
fn clone(&Self) -> Error
impl Debug for Error
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Display for Error
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Error for Error
fn description(&Self) -> &str
impl PartialEq<Error> for Error
fn eq(&Self, other: &Error) -> bool
fn ne(&Self, other: &Error) -> bool

Auto Trait Implementations

impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for T
where
    T: 'static + ?Sized,
fn type_id(&Self) -> TypeId
impl<T> Borrow<T> for T
where
    T: ?Sized,
fn borrow(&Self) -> &T
impl<T> BorrowMut<T> for T
where
    T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T
impl<T> From<T> for T
fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for T
where
    U: From<T>,
fn into(Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl<T> ToOwned for T
where
    T: Clone,
type Owned = T
fn to_owned(&Self) -> T
fn clone_into(&Self, target: &mut T)
impl<T> ToString for T
where
    T: Display + ?Sized,
fn to_string(&Self) -> String
impl<T, U> TryFrom<U> for T
where
    U: Into<T>,
type Error = Infallible
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for T
where
    U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
fn try_into(Self) -> Result<U, <U as TryFrom<T>>::Error>