pub struct BigInt(pub BigInt);Tuple Fields§
§0: BigIntImplementations§
Source§impl BigInt
impl BigInt
pub fn zero() -> Self
pub fn from(v: i32) -> Self
pub fn from_i64(v: i64) -> Self
pub fn from_str(s: &str) -> Self
pub fn from_be_bytes(bytes: &[u8]) -> Self
pub fn from_unsigned_be_bytes(bytes: &[u8]) -> Self
pub fn is_zero(&self) -> bool
pub fn abs(&self) -> Self
pub fn pow(&self, exp: u32) -> Self
pub fn to_big_decimal(&self) -> BigDecimal
pub fn to_i32(&self) -> i32
pub fn plus(&self, other: &BigInt) -> BigInt
pub fn minus(&self, other: &BigInt) -> BigInt
pub fn times(&self, other: &BigInt) -> BigInt
pub fn div(&self, other: &BigInt) -> BigInt
pub fn mod(&self, other: &BigInt) -> BigInt
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BigInt
impl<'de> Deserialize<'de> for BigInt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IntoEntityValue for &BigInt
impl IntoEntityValue for &BigInt
fn into_value(self) -> Value
Source§impl IntoEntityValue for BigInt
impl IntoEntityValue for BigInt
fn into_value(self) -> Value
Source§impl PartialOrd for BigInt
impl PartialOrd for BigInt
impl Eq for BigInt
impl StructuralPartialEq for BigInt
Auto Trait Implementations§
impl Freeze for BigInt
impl RefUnwindSafe for BigInt
impl Send for BigInt
impl Sync for BigInt
impl Unpin for BigInt
impl UnsafeUnpin for BigInt
impl UnwindSafe for BigInt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.