pub enum CircuitError {
Show 16 variants
Parse(String),
Op {
block: String,
node: String,
source: OpParseError,
},
Format {
block: String,
edge: String,
source: FormatError,
},
WeightFormatOnEdge {
block: String,
edge: String,
format: String,
},
Shape {
block: String,
edge: String,
detail: String,
},
State {
block: String,
state: String,
detail: String,
},
Dim {
block: String,
source: DimError,
},
DanglingInput {
block: String,
node: String,
edge: String,
},
DanglingOutput(String),
Duplicate {
block: String,
name: String,
},
FormatMismatch {
node: String,
op: String,
edge: String,
format: String,
expected: Option<String>,
},
MixedPrecision {
node: String,
detail: String,
},
Binding {
node: String,
detail: String,
},
Layout(String),
Include {
name: String,
detail: String,
},
ShapeMismatch(String),
}Expand description
2026-09-28: Why a circuit did not load or instantiate.
Variants§
Parse(String)
2026-09-28: Not valid TOML, or not the schema.
Op
2026-09-28: An op the vocabulary does not have, or a bad role or format qualifier.
Fields
source: OpParseError2026-09-28: The op error.
Format
2026-09-28: A format spelling no format matches.
Fields
source: FormatError2026-09-28: The format error.
WeightFormatOnEdge
2026-09-28: A weight-only scale layout (channel, block) on an edge.
Fields
Shape
2026-09-28: A shape that is not <rows> x <dim>, or a bad expression in it.
Fields
State
2026-09-30: A state declaration that does not parse or evaluate.
Fields
Dim
2026-09-28: A dimension the arch shape does not define, or an overflow.
DanglingInput
2026-09-28: A node reads an edge nothing produced.
Fields
DanglingOutput(String)
2026-09-28: An edge nothing reads that is not a declared output.
Duplicate
2026-09-28: Two producers of one edge, or two nodes with one id.
FormatMismatch
2026-09-28: An edge whose format a reader does not accept.
Fields
MixedPrecision
2026-09-28: The modules of one node resolve to different formats.
Binding
2026-09-28: A weight-reading node without a binding, or a binding on a node that reads no weight but is not a norm.
Layout(String)
2026-09-28: A layout that names a missing template, or a model whose layers the layout does not describe.
Include
2026-09-28: An included block file that was not supplied, does not parse, or defines a block another file also defines.
ShapeMismatch(String)
2026-09-28: A dim the circuit requires that the arch shape does not give, or one it gives that the circuit does not declare.
Trait Implementations§
Source§impl Clone for CircuitError
impl Clone for CircuitError
Source§fn clone(&self) -> CircuitError
fn clone(&self) -> CircuitError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CircuitError
impl Debug for CircuitError
Source§impl Display for CircuitError
impl Display for CircuitError
Source§impl Error for CircuitError
impl Error for CircuitError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<CircuitError> for CheckpointError
impl From<CircuitError> for CheckpointError
Source§fn from(source: CircuitError) -> Self
fn from(source: CircuitError) -> Self
Source§impl From<CircuitError> for LoadError
impl From<CircuitError> for LoadError
Source§fn from(source: CircuitError) -> Self
fn from(source: CircuitError) -> Self
Source§impl PartialEq for CircuitError
impl PartialEq for CircuitError
impl Eq for CircuitError
impl StructuralPartialEq for CircuitError
Auto Trait Implementations§
impl Freeze for CircuitError
impl RefUnwindSafe for CircuitError
impl Send for CircuitError
impl Sync for CircuitError
impl Unpin for CircuitError
impl UnwindSafe for CircuitError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.