pub enum PatternError {
InvalidRef(Span),
MissingRef(Span),
InvalidMixOp(Span),
InvalidRecursive(Span),
InvalidOrLen(Span),
MultipleRecursives(Span),
MixOperations(Span),
MultipleProduction(Span, Span),
AmbiguousProduction(Span),
UnrestrictedOr(Span),
ConstraintExpr(DisassemblyError),
}
Variants§
InvalidRef(Span)
MissingRef(Span)
InvalidMixOp(Span)
InvalidRecursive(Span)
InvalidOrLen(Span)
MultipleRecursives(Span)
MixOperations(Span)
MultipleProduction(Span, Span)
AmbiguousProduction(Span)
UnrestrictedOr(Span)
ConstraintExpr(DisassemblyError)
Trait Implementations§
Source§impl Clone for PatternError
impl Clone for PatternError
Source§fn clone(&self) -> PatternError
fn clone(&self) -> PatternError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PatternError
impl Debug for PatternError
Source§impl Display for PatternError
impl Display for PatternError
Source§impl Error for PatternError
impl Error for PatternError
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<DisassemblyError> for PatternError
impl From<DisassemblyError> for PatternError
Source§fn from(source: DisassemblyError) -> Self
fn from(source: DisassemblyError) -> Self
Converts to this type from the input type.
Source§impl From<PatternError> for TableError
impl From<PatternError> for TableError
Source§fn from(source: PatternError) -> Self
fn from(source: PatternError) -> Self
Converts to this type from the input type.
Source§impl From<PatternError> for WithBlockError
impl From<PatternError> for WithBlockError
Source§fn from(source: PatternError) -> Self
fn from(source: PatternError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PatternError
impl RefUnwindSafe for PatternError
impl !Send for PatternError
impl !Sync for PatternError
impl Unpin for PatternError
impl UnwindSafe for PatternError
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