Trait BigDecimalEthersExt

Source
pub trait BigDecimalEthersExt
where 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§

Source

fn to_ethers_u256(&self, decimals: u8) -> Option<U256>

Source

fn to_ethers_i256(&self, decimals: u8) -> Option<I256>

Source

fn from_ethers_u256(bn: &U256, decimals: u8) -> Option<Self>

Source

fn from_ethers_i256(bn: &I256, decimals: u8) -> Option<Self>

Source

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.

Implementations on Foreign Types§

Source§

impl BigDecimalEthersExt for BigDecimal

Source§

fn to_ethers_u256(&self, decimals: u8) -> Option<U256>

Source§

fn to_ethers_i256(&self, decimals: u8) -> Option<I256>

Source§

fn from_ethers_u256(bn: &U256, decimals: u8) -> Option<Self>

Source§

fn from_ethers_i256(bn: &I256, decimals: u8) -> Option<Self>

Source§

fn from_bn_string(bn: String, decimals: u8) -> Option<Self>

Implementors§