pub trait BigDecimalEthersExtwhere
Self: Sized,{
// Required methods
fn to_ethers_u256(&self, decimals: u8) -> Option<U256>;
fn to_ethers_i256(&self, decimals: u8) -> Option<I256>;
fn from_ethers_u256(bn: &U256, decimals: u8) -> Option<Self>;
fn from_ethers_i256(bn: &I256, decimals: u8) -> Option<Self>;
fn from_bn_string(bn: String, decimals: u8) -> Option<Self>;
}
Required Methods§
fn to_ethers_u256(&self, decimals: u8) -> Option<U256>
fn to_ethers_i256(&self, decimals: u8) -> Option<I256>
fn from_ethers_u256(bn: &U256, decimals: u8) -> Option<Self>
fn from_ethers_i256(bn: &I256, decimals: u8) -> Option<Self>
fn from_bn_string(bn: String, decimals: u8) -> Option<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.