[−][src]Struct cw0::NativeBalance
Implementations
impl NativeBalance
[src]
pub fn into_vec(self) -> Vec<Coin>
[src]
pub fn has(&self, required: &Coin) -> bool
[src]
returns true if the list of coins has at least the required amount
pub fn normalize(&mut self)
[src]
normalize Wallet (sorted by denom, no 0 elements, no duplicate denoms)
pub fn is_empty(&self) -> bool
[src]
pub fn sub_saturating(self, other: Coin) -> StdResult<Self>
[src]
similar to Balance.sub
, but doesn't fail when minuend less than subtrahend
Trait Implementations
impl Add<Coin> for NativeBalance
[src]
type Output = Self
The resulting type after applying the +
operator.
pub fn add(self, other: Coin) -> Self
[src]
impl Add<NativeBalance> for NativeBalance
[src]
type Output = Self
The resulting type after applying the +
operator.
pub fn add(self, other: NativeBalance) -> Self
[src]
impl AddAssign<Coin> for NativeBalance
[src]
pub fn add_assign(&mut self, other: Coin)
[src]
impl AddAssign<NativeBalance> for NativeBalance
[src]
pub fn add_assign(&mut self, other: NativeBalance)
[src]
impl Clone for NativeBalance
[src]
pub fn clone(&self) -> NativeBalance
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NativeBalance
[src]
impl Default for NativeBalance
[src]
pub fn default() -> NativeBalance
[src]
impl<'de> Deserialize<'de> for NativeBalance
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl JsonSchema for NativeBalance
[src]
pub fn schema_name() -> String
[src]
pub fn json_schema(gen: &mut SchemaGenerator) -> Schema
[src]
pub fn is_referenceable() -> bool
[src]
impl PartialEq<NativeBalance> for NativeBalance
[src]
pub fn eq(&self, other: &NativeBalance) -> bool
[src]
pub fn ne(&self, other: &NativeBalance) -> bool
[src]
impl Serialize for NativeBalance
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for NativeBalance
[src]
impl Sub<Coin> for NativeBalance
[src]
type Output = StdResult<Self>
The resulting type after applying the -
operator.
pub fn sub(self, other: Coin) -> StdResult<Self>
[src]
impl Sub<Vec<Coin, Global>> for NativeBalance
[src]
Auto Trait Implementations
impl RefUnwindSafe for NativeBalance
[src]
impl Send for NativeBalance
[src]
impl Sync for NativeBalance
[src]
impl Unpin for NativeBalance
[src]
impl UnwindSafe for NativeBalance
[src]
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, 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>,