pub enum IrError {
Show 16 variants
EmptyEinsumSpec,
InvalidEinsumSpec {
spec: String,
reason: String,
},
TensorIndexOutOfBounds {
index: usize,
max: usize,
},
OutputIndexOutOfBounds {
index: usize,
max: usize,
},
NodeValidation {
node: usize,
message: String,
},
PredicateNotFound {
name: String,
},
ArityMismatch {
name: String,
expected: usize,
actual: usize,
},
TypeMismatch {
name: String,
arg_index: usize,
expected: String,
actual: String,
},
UnboundVariable {
var: String,
},
InconsistentTypes {
var: String,
type1: String,
type2: String,
},
DomainNotFound {
name: String,
},
DomainAlreadyExists {
name: String,
},
DomainIncompatible {
domain1: String,
domain2: String,
},
VariableDomainMismatch {
var: String,
expected: String,
actual: String,
},
UnsupportedAggregation {
op: String,
},
CyclicGraph,
}Variants§
EmptyEinsumSpec
InvalidEinsumSpec
TensorIndexOutOfBounds
OutputIndexOutOfBounds
NodeValidation
PredicateNotFound
ArityMismatch
TypeMismatch
UnboundVariable
InconsistentTypes
DomainNotFound
DomainAlreadyExists
DomainIncompatible
VariableDomainMismatch
UnsupportedAggregation
CyclicGraph
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 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