pub struct I256(/* private fields */);Implementations§
Source§impl I256
impl I256
pub const ZERO: Self
pub const ONE: Self
pub const MINUS_ONE: Self
pub const MAX: Self
pub const MIN: Self
pub fn from_i128(v: i128) -> Self
pub fn from_u128(v: u128) -> Self
pub fn try_into_i128(&self) -> Option<i128>
pub fn is_zero(&self) -> bool
pub fn is_negative(&self) -> bool
pub fn is_positive(&self) -> bool
pub fn signum(&self) -> i8
pub fn abs_u256(self) -> U256
pub fn checked_add(self, rhs: I256) -> Option<I256>
pub fn checked_sub(self, rhs: I256) -> Option<I256>
pub fn checked_neg(self) -> Option<I256>
pub fn saturating_add(self, rhs: I256) -> I256
pub fn from_raw_u256(v: U256) -> Self
Trait Implementations§
Source§impl Ord for I256
impl Ord for I256
Source§impl PartialOrd for I256
impl PartialOrd for I256
impl Copy for I256
impl Eq for I256
impl StructuralPartialEq for I256
Auto Trait Implementations§
impl Freeze for I256
impl RefUnwindSafe for I256
impl Send for I256
impl Sync for I256
impl Unpin for I256
impl UnsafeUnpin for I256
impl UnwindSafe for I256
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