pub enum ArchSpecError {
Zone {
message: String,
},
Geometry {
message: String,
},
Bus {
message: String,
},
Path {
message: String,
},
}Expand description
Error categories for arch spec structural validation.
Each variant groups related validation checks. Multiple errors can be collected in a single validation pass.
Variants§
Zone
Zone configuration error (zone 0 coverage, measurement/entangling zone IDs).
Geometry
Word geometry error (site counts, grid indices, grid shape, non-finite values).
Bus
Bus topology error (site/word bus structure, membership lists).
Path
Transport path error (invalid lanes, waypoint counts, endpoint mismatches).
Trait Implementations§
Source§impl Clone for ArchSpecError
impl Clone for ArchSpecError
Source§fn clone(&self) -> ArchSpecError
fn clone(&self) -> ArchSpecError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArchSpecError
impl Debug for ArchSpecError
Source§impl Display for ArchSpecError
impl Display for ArchSpecError
Source§impl Error for ArchSpecError
impl Error for ArchSpecError
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()
Source§impl PartialEq for ArchSpecError
impl PartialEq for ArchSpecError
impl StructuralPartialEq for ArchSpecError
Auto Trait Implementations§
impl Freeze for ArchSpecError
impl RefUnwindSafe for ArchSpecError
impl Send for ArchSpecError
impl Sync for ArchSpecError
impl Unpin for ArchSpecError
impl UnwindSafe for ArchSpecError
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