pub enum RaritySimulationError {
IoError(Arc<Error>),
NotSupported(String),
InvalidInstructionEncoding(u64, DecodingError),
ExecutionDepthReached(u64),
}Variants§
IoError(Arc<Error>)
NotSupported(String)
InvalidInstructionEncoding(u64, DecodingError)
ExecutionDepthReached(u64)
Trait Implementations§
Source§impl BugFinder<RarityBugInfo, RaritySimulationError> for RaritySimulation
impl BugFinder<RarityBugInfo, RaritySimulationError> for RaritySimulation
Source§fn search_for_bugs(
&self,
program: &Program,
) -> Result<Option<RaritySimulationBug>, RaritySimulationError>
fn search_for_bugs( &self, program: &Program, ) -> Result<Option<RaritySimulationBug>, RaritySimulationError>
Performs rarity simulation on a given program
If one state encountered a bug, execution is terminated and its description is returned. If no
bugs have been encountered after the configured limit has been met, None is returned.
Please see the module-level documentation for a detailed description of rarity simulation.
Source§impl Clone for RaritySimulationError
impl Clone for RaritySimulationError
Source§fn clone(&self) -> RaritySimulationError
fn clone(&self) -> RaritySimulationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RaritySimulationError
impl Debug for RaritySimulationError
Source§impl Display for RaritySimulationError
impl Display for RaritySimulationError
Source§impl Error for RaritySimulationError
impl Error for RaritySimulationError
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()
Auto Trait Implementations§
impl Freeze for RaritySimulationError
impl !RefUnwindSafe for RaritySimulationError
impl Send for RaritySimulationError
impl Sync for RaritySimulationError
impl Unpin for RaritySimulationError
impl UnsafeUnpin for RaritySimulationError
impl !UnwindSafe for RaritySimulationError
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