pub struct MicroAlgos(pub u64);
Expand description
MicroAlgos are the base unit of currency in Algorand
Tuple Fields§
§0: u64
Implementations§
Source§impl MicroAlgos
impl MicroAlgos
pub fn to_algos(self) -> f64
pub fn from_algos(algos: f64) -> MicroAlgos
Trait Implementations§
Source§impl Add<u64> for MicroAlgos
impl Add<u64> for MicroAlgos
Source§impl Add for MicroAlgos
impl Add for MicroAlgos
Source§impl Clone for MicroAlgos
impl Clone for MicroAlgos
Source§fn clone(&self) -> MicroAlgos
fn clone(&self) -> MicroAlgos
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 MicroAlgos
impl Debug for MicroAlgos
Source§impl Default for MicroAlgos
impl Default for MicroAlgos
Source§fn default() -> MicroAlgos
fn default() -> MicroAlgos
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MicroAlgos
impl<'de> Deserialize<'de> for MicroAlgos
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 Display for MicroAlgos
impl Display for MicroAlgos
Source§impl Mul<u64> for MicroAlgos
impl Mul<u64> for MicroAlgos
Source§impl Ord for MicroAlgos
impl Ord for MicroAlgos
Source§fn cmp(&self, other: &MicroAlgos) -> Ordering
fn cmp(&self, other: &MicroAlgos) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MicroAlgos
impl PartialEq for MicroAlgos
Source§impl PartialOrd for MicroAlgos
impl PartialOrd for MicroAlgos
Source§impl Serialize for MicroAlgos
impl Serialize for MicroAlgos
Source§impl Sub<u64> for MicroAlgos
impl Sub<u64> for MicroAlgos
Source§impl Sub for MicroAlgos
impl Sub for MicroAlgos
impl Copy for MicroAlgos
impl Eq for MicroAlgos
impl StructuralPartialEq for MicroAlgos
Auto Trait Implementations§
impl Freeze for MicroAlgos
impl RefUnwindSafe for MicroAlgos
impl Send for MicroAlgos
impl Sync for MicroAlgos
impl Unpin for MicroAlgos
impl UnwindSafe for MicroAlgos
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<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 more