pub enum IrError {
InvalidRepeatBounds {
min: usize,
max: usize,
},
DuplicateCapture(CaptureId),
MissingAssertion(AssertionId),
AssertionCycle(Vec<AssertionId>),
UnsupportedExtension(String),
}Expand description
A construction failure for pattern IR.
Variants§
InvalidRepeatBounds
A repeat’s minimum exceeds its maximum.
DuplicateCapture(CaptureId)
A capture identifier occurs more than once.
MissingAssertion(AssertionId)
An assertion refers to a definition that was not supplied.
AssertionCycle(Vec<AssertionId>)
Assertion references form a cycle.
UnsupportedExtension(String)
An extension is unavailable on the selected target engine.
Trait Implementations§
impl Eq for IrError
Source§impl Error for IrError
impl Error for IrError
1.30.0 · 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()
impl StructuralPartialEq for IrError
Auto Trait Implementations§
impl Freeze for IrError
impl RefUnwindSafe for IrError
impl Send for IrError
impl Sync for IrError
impl Unpin for IrError
impl UnsafeUnpin for IrError
impl UnwindSafe for IrError
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