Enum iota_lib_rs::utils::IotaUnits [−][src]
pub enum IotaUnits { Iota, KiloIota, MegaIota, GigaIota, TeraIota, PetaIota, }
Provides an enum representing all units of IOTA
Variants
Iota
Base unit of IOTA
KiloIota
1,000 Iota
MegaIota
1,000,000 Iota
GigaIota
1,000,000,000 Iota
TeraIota
1,000,000,000,000 Iota
PetaIota
1,000,000,000,000,000 Iota
Methods
impl IotaUnits
[src]
impl IotaUnits
pub fn unit(self) -> &'static str
[src]
pub fn unit(self) -> &'static str
Provides the unit string associated with this unit
pub fn value(self) -> u8
[src]
pub fn value(self) -> u8
Provides the number of significant digits associated with this unit
Trait Implementations
impl PartialEq for IotaUnits
[src]
impl PartialEq for IotaUnits
fn eq(&self, other: &IotaUnits) -> bool
[src]
fn eq(&self, other: &IotaUnits) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Clone for IotaUnits
[src]
impl Clone for IotaUnits
fn clone(&self) -> IotaUnits
[src]
fn clone(&self) -> IotaUnits
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for IotaUnits
[src]
impl Copy for IotaUnits
impl Debug for IotaUnits
[src]
impl Debug for IotaUnits