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
sourceimpl From<CheckError> for SimError
impl From<CheckError> for SimError
sourcefn from(x: CheckError) -> Self
fn from(x: CheckError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SimError> for SimError
impl PartialEq<SimError> for SimError
impl StructuralPartialEq for SimError
Auto Trait Implementations
impl RefUnwindSafe for SimError
impl Send for SimError
impl Sync for SimError
impl Unpin for SimError
impl UnwindSafe for SimError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more