Trait Eth

Source
pub trait Eth {
    // Required method
    fn to_weth(x: u128) -> Self;
}
Expand description

Convert values in in eth to weth

Required Methods§

Source

fn to_weth(x: u128) -> 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 Eth for U256

Convert revm u256 from eth to weth value

Source§

fn to_weth(x: u128) -> Self

Implementors§