pub struct Int(/* private fields */);Expand description
Mathematical integers for writting specifications. Mathematical integers are unbounded and arithmetic operation on them never over or underflow.
Implementations§
Source§impl Int
impl Int
Sourcepub fn _unsafe_from_str(s: &str) -> Self
pub fn _unsafe_from_str(s: &str) -> Self
Constructs a Int out of a string literal. This function
assumes its argument consists only of decimal digits, with
optionally a minus sign prefix.
pub fn rem_euclid(&self, v: Self) -> Self
Trait Implementations§
Source§impl Concretization<i8> for Int
impl Concretization<i8> for Int
Source§fn concretize(self) -> i8
fn concretize(self) -> i8
Maps an abstract value and lowers it to its concrete counterpart.
Source§impl Concretization<i16> for Int
impl Concretization<i16> for Int
Source§fn concretize(self) -> i16
fn concretize(self) -> i16
Maps an abstract value and lowers it to its concrete counterpart.
Source§impl Concretization<i32> for Int
impl Concretization<i32> for Int
Source§fn concretize(self) -> i32
fn concretize(self) -> i32
Maps an abstract value and lowers it to its concrete counterpart.
Source§impl Concretization<i64> for Int
impl Concretization<i64> for Int
Source§fn concretize(self) -> i64
fn concretize(self) -> i64
Maps an abstract value and lowers it to its concrete counterpart.
Source§impl Concretization<i128> for Int
impl Concretization<i128> for Int
Source§fn concretize(self) -> i128
fn concretize(self) -> i128
Maps an abstract value and lowers it to its concrete counterpart.
Source§impl Concretization<isize> for Int
impl Concretization<isize> for Int
Source§fn concretize(self) -> isize
fn concretize(self) -> isize
Maps an abstract value and lowers it to its concrete counterpart.
Source§impl Concretization<u8> for Int
impl Concretization<u8> for Int
Source§fn concretize(self) -> u8
fn concretize(self) -> u8
Maps an abstract value and lowers it to its concrete counterpart.
Source§impl Concretization<u16> for Int
impl Concretization<u16> for Int
Source§fn concretize(self) -> u16
fn concretize(self) -> u16
Maps an abstract value and lowers it to its concrete counterpart.
Source§impl Concretization<u32> for Int
impl Concretization<u32> for Int
Source§fn concretize(self) -> u32
fn concretize(self) -> u32
Maps an abstract value and lowers it to its concrete counterpart.
Source§impl Concretization<u64> for Int
impl Concretization<u64> for Int
Source§fn concretize(self) -> u64
fn concretize(self) -> u64
Maps an abstract value and lowers it to its concrete counterpart.
Source§impl Concretization<u128> for Int
impl Concretization<u128> for Int
Source§fn concretize(self) -> u128
fn concretize(self) -> u128
Maps an abstract value and lowers it to its concrete counterpart.
Source§impl Concretization<usize> for Int
impl Concretization<usize> for Int
Source§fn concretize(self) -> usize
fn concretize(self) -> usize
Maps an abstract value and lowers it to its concrete counterpart.
impl Copy for Int
impl Eq for Int
Source§impl Ord for Int
impl Ord for Int
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Int
impl PartialOrd for Int
impl StructuralPartialEq for Int
Auto Trait Implementations§
impl Freeze for Int
impl RefUnwindSafe for Int
impl Send for Int
impl Sync for Int
impl Unpin for Int
impl UnsafeUnpin for Int
impl UnwindSafe for Int
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