Struct rgbstd::stl::CoinAmount
source · pub struct CoinAmount {
pub int: u64,
pub fract: u64,
pub precision: Precision,
}Fields§
§int: u64§fract: u64§precision: PrecisionImplementations§
Trait Implementations§
source§impl Clone for CoinAmount
impl Clone for CoinAmount
source§fn clone(&self) -> CoinAmount
fn clone(&self) -> CoinAmount
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CoinAmount
impl Debug for CoinAmount
source§impl Display for CoinAmount
impl Display for CoinAmount
source§impl Hash for CoinAmount
impl Hash for CoinAmount
source§impl PartialEq<CoinAmount> for CoinAmount
impl PartialEq<CoinAmount> for CoinAmount
source§fn eq(&self, other: &CoinAmount) -> bool
fn eq(&self, other: &CoinAmount) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for CoinAmount
impl Eq for CoinAmount
impl StructuralEq for CoinAmount
impl StructuralPartialEq for CoinAmount
Auto Trait Implementations§
impl RefUnwindSafe for CoinAmount
impl Send for CoinAmount
impl Sync for CoinAmount
impl Unpin for CoinAmount
impl UnwindSafe for CoinAmount
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.