pub enum IntMode {
Tlc,
Big,
}Expand description
How integers behave.
Arbitrary precision is dive’s default. TLC’s 32-bit integers, with its overflow
error, are always available and selected by --int=tlc (part of --compat=tlc).
Variants§
Tlc
TLC’s semantics: values are Java ints, arithmetic that leaves
[-2^31, 2^31 - 1] is EC.TLC_MODULE_OVERFLOW, and literals above 2^31 - 1
are EC.TLC_INTEGER_TOO_BIG.
Big
Mathematical integers: an inline 64-bit fast path that spills to a big integer.
Trait Implementations§
impl Copy for IntMode
impl Eq for IntMode
impl StructuralPartialEq for IntMode
Auto Trait Implementations§
impl Forget for IntMode
impl Freeze for IntMode
impl Move for IntMode
impl RefUnwindSafe for IntMode
impl Send for IntMode
impl Sync for IntMode
impl Unpin for IntMode
impl UnsafeUnpin for IntMode
impl UnwindSafe for IntMode
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