Enum ethers_core::utils::ParseUnits
source · pub enum ParseUnits {
U256(U256),
I256(I256),
}
Expand description
This enum holds the numeric types that a possible to be returned by parse_units
and
that are taken by format_units
.
Variants§
Trait Implementations§
source§impl Clone for ParseUnits
impl Clone for ParseUnits
source§fn clone(&self) -> ParseUnits
fn clone(&self) -> ParseUnits
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 ParseUnits
impl Debug for ParseUnits
source§impl Display for ParseUnits
impl Display for ParseUnits
source§impl From<I256> for ParseUnits
impl From<I256> for ParseUnits
source§impl From<ParseUnits> for I256
impl From<ParseUnits> for I256
source§fn from(n: ParseUnits) -> Self
fn from(n: ParseUnits) -> Self
Converts to this type from the input type.
source§impl From<ParseUnits> for U256
impl From<ParseUnits> for U256
source§fn from(n: ParseUnits) -> Self
fn from(n: ParseUnits) -> Self
Converts to this type from the input type.
source§impl From<U256> for ParseUnits
impl From<U256> for ParseUnits
source§impl From<i128> for ParseUnits
impl From<i128> for ParseUnits
source§impl From<i16> for ParseUnits
impl From<i16> for ParseUnits
source§impl From<i32> for ParseUnits
impl From<i32> for ParseUnits
source§impl From<i64> for ParseUnits
impl From<i64> for ParseUnits
source§impl From<i8> for ParseUnits
impl From<i8> for ParseUnits
source§impl From<isize> for ParseUnits
impl From<isize> for ParseUnits
source§impl From<u128> for ParseUnits
impl From<u128> for ParseUnits
source§impl From<u16> for ParseUnits
impl From<u16> for ParseUnits
source§impl From<u32> for ParseUnits
impl From<u32> for ParseUnits
source§impl From<u64> for ParseUnits
impl From<u64> for ParseUnits
source§impl From<u8> for ParseUnits
impl From<u8> for ParseUnits
source§impl From<usize> for ParseUnits
impl From<usize> for ParseUnits
source§impl Ord for ParseUnits
impl Ord for ParseUnits
source§fn cmp(&self, other: &ParseUnits) -> Ordering
fn cmp(&self, other: &ParseUnits) -> 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 ParseUnits
impl PartialEq for ParseUnits
source§fn eq(&self, other: &ParseUnits) -> bool
fn eq(&self, other: &ParseUnits) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ParseUnits
impl PartialOrd for ParseUnits
source§fn partial_cmp(&self, other: &ParseUnits) -> Option<Ordering>
fn partial_cmp(&self, other: &ParseUnits) -> Option<Ordering>
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 ParseUnits
impl Eq for ParseUnits
impl StructuralPartialEq for ParseUnits
Auto Trait Implementations§
impl RefUnwindSafe for ParseUnits
impl Send for ParseUnits
impl Sync for ParseUnits
impl Unpin for ParseUnits
impl UnwindSafe for ParseUnits
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