#[non_exhaustive]pub enum MbaError {
BadOperand,
Width,
UnknownVar,
}Expand description
Why a node could not be added.
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.
BadOperand
An operand index is not an earlier node.
Width
Operand widths do not fit the operator.
UnknownVar
A variable index is not declared.
Trait Implementations§
impl Eq for MbaError
Source§impl Error for MbaError
impl Error for MbaError
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 MbaError
Auto Trait Implementations§
impl Freeze for MbaError
impl RefUnwindSafe for MbaError
impl Send for MbaError
impl Sync for MbaError
impl Unpin for MbaError
impl UnsafeUnpin for MbaError
impl UnwindSafe for MbaError
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