Enum ethers_core::utils::ConversionError
source · pub enum ConversionError {
UnrecognizedUnits(String),
TextTooLong,
Utf8Error(Utf8Error),
InvalidFloat(ParseFloatError),
FromDecStrError(FromDecStrErr),
ParseOverflow,
ParseI256Error(ParseI256Error),
InvalidAddressChecksum,
FromHexError(<Address as FromStr>::Err),
}
Variants§
UnrecognizedUnits(String)
TextTooLong
Utf8Error(Utf8Error)
InvalidFloat(ParseFloatError)
FromDecStrError(FromDecStrErr)
ParseOverflow
ParseI256Error(ParseI256Error)
InvalidAddressChecksum
FromHexError(<Address as FromStr>::Err)
Trait Implementations§
source§impl Debug for ConversionError
impl Debug for ConversionError
source§impl Display for ConversionError
impl Display for ConversionError
source§impl Error for ConversionError
impl Error for ConversionError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<FromDecStrErr> for ConversionError
impl From<FromDecStrErr> for ConversionError
source§fn from(source: FromDecStrErr) -> Self
fn from(source: FromDecStrErr) -> Self
Converts to this type from the input type.
source§impl From<ParseFloatError> for ConversionError
impl From<ParseFloatError> for ConversionError
source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
source§impl From<ParseI256Error> for ConversionError
impl From<ParseI256Error> for ConversionError
source§fn from(source: ParseI256Error) -> Self
fn from(source: ParseI256Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ConversionError
impl Send for ConversionError
impl Sync for ConversionError
impl Unpin for ConversionError
impl UnwindSafe for ConversionError
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