pub enum OptimizerError {
PostconditionFailed {
pass: String,
errors: Vec<GraphError>,
},
Ir(IrError),
Fusion(String),
}Expand description
Crate-level error for the optimization pipeline.
Variants§
PostconditionFailed
A pass left the graph in a structurally invalid state. Raised by the
default OptimizationPass::postconditions
check (debug builds).
Fields
§
errors: Vec<GraphError>The structural defects found by graph.validate().
Ir(IrError)
A rewrite requested an operation the IR rejected.
Fusion(String)
A fusion could not be applied safely (e.g. malformed match).
Trait Implementations§
Source§impl Debug for OptimizerError
impl Debug for OptimizerError
Source§impl Display for OptimizerError
impl Display for OptimizerError
Source§impl Error for OptimizerError
impl Error for OptimizerError
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<IrError> for OptimizerError
impl From<IrError> for OptimizerError
Source§impl From<Vec<GraphError>> for OptimizerError
impl From<Vec<GraphError>> for OptimizerError
Source§fn from(errors: Vec<GraphError>) -> Self
fn from(errors: Vec<GraphError>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OptimizerError
impl RefUnwindSafe for OptimizerError
impl Send for OptimizerError
impl Sync for OptimizerError
impl Unpin for OptimizerError
impl UnsafeUnpin for OptimizerError
impl UnwindSafe for OptimizerError
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