pub enum SimError {
SimTerminated,
MaxTimeReached,
SimHalted,
FailedToConverge,
Check(CheckError),
SimPanic,
}
Expand description
The error type returned by a simulation
Variants§
SimTerminated
The simulation terminated prematurely (i.e., something went wrong)
MaxTimeReached
The simulation reached the maximum allowed time for the simulation
SimHalted
The simulation halted - usually this means an assertion failed
FailedToConverge
The circuit failed to converge. This means the logic has some issue (like an oscillation).
Check(CheckError)
Something went wrong with the circuit check (either a missing connection or other issue, like a latching write).
SimPanic
The simulation panicked. This usually means .unwrap
was called on a result in the testbench.
Trait Implementations§
Source§impl From<CheckError> for SimError
impl From<CheckError> for SimError
Source§fn from(x: CheckError) -> SimError
fn from(x: CheckError) -> SimError
Converts to this type from the input type.
impl StructuralPartialEq for SimError
Auto Trait Implementations§
impl Freeze for SimError
impl RefUnwindSafe for SimError
impl Send for SimError
impl Sync for SimError
impl Unpin for SimError
impl UnwindSafe for SimError
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