[−][src]Struct cosmwasm_bignumber::Uint256
Implementations
impl Uint256
[src]
pub const fn zero() -> Self
[src]
Creates a Uint256(0)
pub const fn one() -> Self
[src]
Create a 1.0 Decimal256
pub fn is_zero(&self) -> bool
[src]
impl Uint256
[src]
pub fn multiply_ratio<A: Into<U256>, B: Into<U256>>(
&self,
nom: A,
denom: B
) -> Uint256
[src]
&self,
nom: A,
denom: B
) -> Uint256
returns self * nom / denom
Trait Implementations
impl Add<Uint256> for Uint256
[src]
type Output = Self
The resulting type after applying the +
operator.
pub fn add(self, rhs: Self) -> Self
[src]
impl AddAssign<Uint256> for Uint256
[src]
pub fn add_assign(&mut self, other: Self)
[src]
impl Clone for Uint256
[src]
impl Copy for Uint256
[src]
impl Debug for Uint256
[src]
impl Default for Uint256
[src]
impl<'de> Deserialize<'de> for Uint256
[src]
Deserializes as a base64 string
pub fn deserialize<D>(deserializer: D) -> Result<Uint256, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Display for Uint256
[src]
impl Div<Decimal256> for Uint256
[src]
type Output = Self
The resulting type after applying the /
operator.
pub fn div(self, rhs: Decimal256) -> Self::Output
[src]
impl Eq for Uint256
[src]
impl From<U256> for Uint256
[src]
impl From<Uint128> for Uint256
[src]
impl From<u128> for Uint256
[src]
impl From<u64> for Uint256
[src]
impl FromStr for Uint256
[src]
type Err = StdError
The associated error which can be returned from parsing.
pub fn from_str(input: &str) -> Result<Self, Self::Err>
[src]
impl Into<String> for Uint256
[src]
impl Into<Uint128> for Uint256
[src]
impl Into<u128> for Uint256
[src]
impl JsonSchema for Uint256
[src]
pub fn schema_name() -> String
[src]
pub fn json_schema(gen: &mut SchemaGenerator) -> Schema
[src]
pub fn is_referenceable() -> bool
[src]
impl Mul<Decimal256> for Uint256
[src]
Both du and ud with d: Decimal256 and u: Uint256 returns an Uint256. There is no specific reason for this decision other than the initial use cases we have. If you need a Decimal256 result for the same calculation, use Decimal256(du) or Decimal256(ud).
type Output = Self
The resulting type after applying the *
operator.
pub fn mul(self, rhs: Decimal256) -> Self::Output
[src]
impl Mul<Uint256> for Uint256
[src]
type Output = Self
The resulting type after applying the *
operator.
pub fn mul(self, rhs: Uint256) -> Self::Output
[src]
impl Mul<Uint256> for Decimal256
[src]
type Output = Uint256
The resulting type after applying the *
operator.
pub fn mul(self, rhs: Uint256) -> Self::Output
[src]
impl Ord for Uint256
[src]
pub fn cmp(&self, other: &Uint256) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Uint256> for Uint256
[src]
impl PartialOrd<Uint256> for Uint256
[src]
pub fn partial_cmp(&self, other: &Uint256) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Uint256) -> bool
[src]
pub fn le(&self, other: &Uint256) -> bool
[src]
pub fn gt(&self, other: &Uint256) -> bool
[src]
pub fn ge(&self, other: &Uint256) -> bool
[src]
impl Serialize for Uint256
[src]
Serializes as a base64 string
impl StructuralEq for Uint256
[src]
impl StructuralPartialEq for Uint256
[src]
impl Sub<Uint256> for Uint256
[src]
type Output = Self
The resulting type after applying the -
operator.
pub fn sub(self, rhs: Self) -> Self::Output
[src]
impl<'_> TryFrom<&'_ str> for Uint256
[src]
Auto Trait Implementations
impl RefUnwindSafe for Uint256
impl Send for Uint256
impl Sync for Uint256
impl Unpin for Uint256
impl UnwindSafe for Uint256
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,