pub struct NativeIntU64(/* private fields */);Expand description
Native Mathematical Integer (represented by u64 number)
The magic is that symbolically an SBF word is mapped to 256 bit symbolic integer.
Implementations§
Source§impl NativeIntU64
impl NativeIntU64
pub fn new<T>(v: T) -> Selfwhere
T: Into<NativeIntU64>,
pub fn div_ceil(self, rhs: Self) -> Self
pub fn muldiv(self, num: Self, den: Self) -> Self
pub fn muldiv_ceil(self, num: Self, den: Self) -> Self
pub fn from_u128(w0: u64, w1: u64) -> Self
pub fn from_u256(w0: u64, w1: u64, w2: u64, w3: u64) -> Self
pub fn u64_max() -> Self
pub fn u128_max() -> Self
pub fn u256_max() -> Self
pub fn is_u8(&self) -> bool
pub fn is_u16(&self) -> bool
pub fn is_u32(&self) -> bool
pub fn is_u64(&self) -> bool
pub fn is_u128(&self) -> bool
pub fn is_u256(&self) -> bool
pub fn nondet() -> Self
pub fn checked_sub(&self, v: NativeIntU64) -> Self
pub fn as_internal(&self) -> u64
Trait Implementations§
Source§impl Add<u64> for NativeIntU64
impl Add<u64> for NativeIntU64
Source§impl Add for NativeIntU64
impl Add for NativeIntU64
Source§type Output = NativeIntU64
type Output = NativeIntU64
The resulting type after applying the
+ operator.Source§impl Clone for NativeIntU64
impl Clone for NativeIntU64
Source§fn clone(&self) -> NativeIntU64
fn clone(&self) -> NativeIntU64
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NativeIntU64
impl Debug for NativeIntU64
Source§impl Div<u64> for NativeIntU64
impl Div<u64> for NativeIntU64
Source§impl Div for NativeIntU64
impl Div for NativeIntU64
Source§type Output = NativeIntU64
type Output = NativeIntU64
The resulting type after applying the
/ operator.Source§impl From<&[u8]> for NativeIntU64
impl From<&[u8]> for NativeIntU64
Source§impl From<NativeIntU64> for u128
impl From<NativeIntU64> for u128
Source§fn from(value: NativeIntU64) -> Self
fn from(value: NativeIntU64) -> Self
Converts to this type from the input type.
Source§impl From<NativeIntU64> for u64
impl From<NativeIntU64> for u64
Source§fn from(value: NativeIntU64) -> Self
fn from(value: NativeIntU64) -> Self
Converts to this type from the input type.
Source§impl From<u128> for NativeIntU64
impl From<u128> for NativeIntU64
Source§impl From<u16> for NativeIntU64
impl From<u16> for NativeIntU64
Source§impl From<u32> for NativeIntU64
impl From<u32> for NativeIntU64
Source§impl From<u64> for NativeIntU64
impl From<u64> for NativeIntU64
Source§impl From<u8> for NativeIntU64
impl From<u8> for NativeIntU64
Source§impl Mul<u64> for NativeIntU64
impl Mul<u64> for NativeIntU64
Source§impl Mul for NativeIntU64
impl Mul for NativeIntU64
Source§type Output = NativeIntU64
type Output = NativeIntU64
The resulting type after applying the
* operator.Source§impl Nondet for NativeIntU64
impl Nondet for NativeIntU64
fn nondet() -> NativeIntU64
fn nondet_with<F>(func: F) -> Self
Source§impl PartialEq for NativeIntU64
impl PartialEq for NativeIntU64
Source§impl PartialOrd for NativeIntU64
impl PartialOrd for NativeIntU64
Source§impl Sub for NativeIntU64
impl Sub for NativeIntU64
Source§type Output = NativeIntU64
type Output = NativeIntU64
The resulting type after applying the
- operator.impl Copy for NativeIntU64
impl Eq for NativeIntU64
Auto Trait Implementations§
impl Freeze for NativeIntU64
impl RefUnwindSafe for NativeIntU64
impl Send for NativeIntU64
impl Sync for NativeIntU64
impl Unpin for NativeIntU64
impl UnwindSafe for NativeIntU64
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