pub enum AssertionMode {
Pessimistic,
Optimistic,
}Expand description
There are two ways to handle assertions in the Sail code, the first being to assume that they succeed (essentially treating them like assumptions in the SMT) - this is the optimistic mode. The other way is to assume that they might fail, and check each assertion to ensure that it can never fail - this is the pessimistic mode.
Variants§
Auto Trait Implementations§
impl Freeze for AssertionMode
impl RefUnwindSafe for AssertionMode
impl Send for AssertionMode
impl Sync for AssertionMode
impl Unpin for AssertionMode
impl UnwindSafe for AssertionMode
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