#[non_exhaustive]pub enum AnalysisLimit {
HitMaxScore,
HitMaxSteps,
TimedOut,
}Expand description
The error reported for an unsafe result.
Match with a wildcard arm. New limits may be added in a future version.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HitMaxScore
The score reached or passed the cap. This covers two cases that both
report Score::Infinite: a finite count that crossed max_score, and a
pattern the checker proved has unbounded backtracking (seen even with
max_score: None).
HitMaxSteps
The step cap was hit.
TimedOut
The timeout was hit.
Trait Implementations§
Source§impl Clone for AnalysisLimit
impl Clone for AnalysisLimit
impl Copy for AnalysisLimit
Source§impl Debug for AnalysisLimit
impl Debug for AnalysisLimit
impl Eq for AnalysisLimit
Source§impl Hash for AnalysisLimit
impl Hash for AnalysisLimit
Source§impl PartialEq for AnalysisLimit
impl PartialEq for AnalysisLimit
impl StructuralPartialEq for AnalysisLimit
Auto Trait Implementations§
impl Freeze for AnalysisLimit
impl RefUnwindSafe for AnalysisLimit
impl Send for AnalysisLimit
impl Sync for AnalysisLimit
impl Unpin for AnalysisLimit
impl UnsafeUnpin for AnalysisLimit
impl UnwindSafe for AnalysisLimit
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