Struct currencies::currency::ETH
source · pub struct ETH;
Expand description
Ethereum (ETH)
Trait Implementations§
source§impl Currency for ETH
impl Currency for ETH
source§const CODE: &'static str = "ETH"
const CODE: &'static str = "ETH"
Specifies a 3-4 digit acronym or “code” that can be used as a short name for this
Currency
. For ISO-supported currencies, this will be equal to the ISO-4217
alphabetic code, which can be found here: https://en.wikipedia.org/wiki/ISO_4217. Read moresource§const PROPER_NAME: &'static str = "Ethereum"
const PROPER_NAME: &'static str = "Ethereum"
source§const STYLE: FormatStyle = crate::currency::FormatStyle::SuffixSpaced
const STYLE: FormatStyle = crate::currency::FormatStyle::SuffixSpaced
Specifies how an
Amount
of this Currency
should be displayed when it is
represented textually via core::fmt::Display
and core::fmt::Debug
.source§fn decimal_digits() -> usize
fn decimal_digits() -> usize
Returns the number of digits to the right of the decimal point for this
Currency
.source§impl Ord for ETH
impl Ord for ETH
source§impl PartialOrd for ETH
impl PartialOrd for ETH
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ETH
impl Eq for ETH
impl StructuralPartialEq for ETH
Auto Trait Implementations§
impl Freeze for ETH
impl RefUnwindSafe for ETH
impl Send for ETH
impl Sync for ETH
impl Unpin for ETH
impl UnwindSafe for ETH
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