Enum ethers_core::utils::Units
source · [−]pub enum Units {
Ether,
Gwei,
Wei,
Other(u32),
}
Expand description
Common Ethereum unit types.
Variants
Ether
Ether corresponds to 1e18 Wei
Gwei
Gwei corresponds to 1e9 Wei
Wei
Wei corresponds to 1 Wei
Other(u32)
Use this for other less frequent unit sizes
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Units
impl Send for Units
impl Sync for Units
impl Unpin for Units
impl UnwindSafe for Units
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more