pub enum IrError {
UnknownEdge {
edge_id: u32,
node_name: String,
},
DuplicateEdgeProducer {
edge_id: u32,
existing_producer: String,
new_producer: String,
},
CycleDetected {
visited: usize,
total: usize,
},
}Expand description
Errors that can occur when constructing or validating IR.
Variants§
UnknownEdge
An edge referenced by a graph node was not registered.
DuplicateEdgeProducer
An output edge already has a producer node.
CycleDetected
A cycle was detected in the computation graph.
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