pub struct DefineOrTrap {
pub value: BV,
pub may_trap: Bool,
}Expand description
A value paired with the condition under which the op traps instead of
producing it — the synth-BV/Bool mirror of ordeal::trap::DefineOrTrap.
value is the op’s result (e.g. the ARM quotient); may_trap is one of the
trap-condition builders below.
Fields§
§value: BVThe op’s result value.
may_trap: BoolThe condition under which the op traps.
Trait Implementations§
Source§impl Clone for DefineOrTrap
impl Clone for DefineOrTrap
Source§fn clone(&self) -> DefineOrTrap
fn clone(&self) -> DefineOrTrap
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 moreAuto Trait Implementations§
impl Freeze for DefineOrTrap
impl RefUnwindSafe for DefineOrTrap
impl Send for DefineOrTrap
impl Sync for DefineOrTrap
impl Unpin for DefineOrTrap
impl UnsafeUnpin for DefineOrTrap
impl UnwindSafe for DefineOrTrap
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