#[non_exhaustive]pub enum StepPatternError {
PlaceholderSyntax(PlaceholderSyntaxError),
InvalidPattern(Error),
}Expand description
Errors that may occur when compiling a [StepPattern].
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.
PlaceholderSyntax(PlaceholderSyntaxError)
Placeholder syntax in the pattern is invalid.
InvalidPattern(Error)
The generated regular expression failed to compile.
Trait Implementations§
Source§impl Debug for StepPatternError
impl Debug for StepPatternError
Source§impl Display for StepPatternError
impl Display for StepPatternError
Source§impl Error for StepPatternError
impl Error for StepPatternError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for StepPatternError
impl From<Error> for StepPatternError
Source§impl From<PatternError> for StepPatternError
impl From<PatternError> for StepPatternError
Source§fn from(err: PatternError) -> Self
fn from(err: PatternError) -> Self
Converts to this type from the input type.
Source§impl From<PlaceholderSyntaxError> for StepPatternError
impl From<PlaceholderSyntaxError> for StepPatternError
Source§fn from(err: PlaceholderSyntaxError) -> Self
fn from(err: PlaceholderSyntaxError) -> Self
Converts to this type from the input type.
Source§impl From<StepPatternError> for PlaceholderError
impl From<StepPatternError> for PlaceholderError
Source§fn from(e: StepPatternError) -> Self
fn from(e: StepPatternError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StepPatternError
impl RefUnwindSafe for StepPatternError
impl Send for StepPatternError
impl Sync for StepPatternError
impl Unpin for StepPatternError
impl UnwindSafe for StepPatternError
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