pub enum IrError {
GraphInvalid(Vec<GraphError>),
CycleDetected,
UnknownValue(ValueId),
UnknownNode(NodeId),
ShapeMismatch {
expected: Vec<usize>,
actual: Vec<usize>,
},
BroadcastIncompatible {
a: Vec<usize>,
b: Vec<usize>,
},
UnsupportedOpset {
domain: String,
version: u64,
},
}Expand description
Crate-level error for fallible IR operations.
Variants§
GraphInvalid(Vec<GraphError>)
One or more structural defects were found by
Graph::validate.
CycleDetected
A cycle was detected while computing a topological order.
UnknownValue(ValueId)
A referenced value id is not live in the graph.
UnknownNode(NodeId)
A referenced node id is not live in the graph.
ShapeMismatch
Two shapes that were required to match did not.
BroadcastIncompatible
Two shapes could not be broadcast together.
UnsupportedOpset
An opset version the IR does not model.
Trait Implementations§
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()
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