Struct dubp_wallet::prelude::SourceAmount [−][src]
Wrap a source amount
Implementations
impl SourceAmount
[src]
pub const ZERO: Self
[src]
pub fn new(amount: i64, base: i64) -> Self
[src]
pub fn amount(&self) -> i64
[src]
pub fn base(&self) -> i64
[src]
pub fn with_base0(amount: i64) -> Self
[src]
pub fn increment_base(self) -> Self
[src]
Trait Implementations
impl Add<SourceAmount> for SourceAmount
[src]
type Output = SourceAmount
The resulting type after applying the +
operator.
fn add(self, a: SourceAmount) -> Self::Output
[src]
impl AsBytes for SourceAmount
[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized,
[src]
Self: Sized,
pub fn as_bytes(&self) -> &[u8]
[src]
pub fn as_bytes_mut(&mut self) -> &mut [u8] where
Self: FromBytes,
[src]
Self: FromBytes,
impl Clone for SourceAmount
[src]
fn clone(&self) -> SourceAmount
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SourceAmount
[src]
impl Debug for SourceAmount
[src]
impl Default for SourceAmount
[src]
fn default() -> SourceAmount
[src]
impl<'de> Deserialize<'de> for SourceAmount
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for SourceAmount
[src]
impl Eq for SourceAmount
[src]
impl FromBytes for SourceAmount
[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized,
[src]
Self: Sized,
impl Ord for SourceAmount
[src]
fn cmp(&self, other: &Self) -> 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<SourceAmount> for SourceAmount
[src]
impl PartialOrd<SourceAmount> for SourceAmount
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for SourceAmount
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for SourceAmount
[src]
impl Sub<SourceAmount> for SourceAmount
[src]
type Output = SourceAmount
The resulting type after applying the -
operator.
fn sub(self, a: SourceAmount) -> Self::Output
[src]
impl Sum<SourceAmount> for SourceAmount
[src]
Auto Trait Implementations
impl RefUnwindSafe for SourceAmount
impl Send for SourceAmount
impl Sync for SourceAmount
impl Unpin for SourceAmount
impl UnwindSafe for SourceAmount
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> Same<T> for T
type Output = T
Should always be Self
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>,