pub enum IrError {
Show 24 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,
UnificationFailure {
type1: String,
type2: String,
},
OccursCheckFailure {
var: String,
ty: String,
},
KindMismatch {
expected: String,
actual: String,
},
LinearityViolation(String),
SerializationError(String),
DomainMismatch {
expected: String,
found: String,
},
ConstraintViolation {
message: String,
},
FormattingError(Error),
}Variants§
EmptyEinsumSpec
InvalidEinsumSpec
TensorIndexOutOfBounds
OutputIndexOutOfBounds
NodeValidation
PredicateNotFound
ArityMismatch
TypeMismatch
UnboundVariable
InconsistentTypes
DomainNotFound
DomainAlreadyExists
DomainIncompatible
VariableDomainMismatch
UnsupportedAggregation
CyclicGraph
UnificationFailure
OccursCheckFailure
KindMismatch
LinearityViolation(String)
SerializationError(String)
DomainMismatch
ConstraintViolation
FormattingError(Error)
Trait Implementations§
Source§impl Error for IrError
impl Error for IrError
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