Trait eth_types::ToWord

source ·
pub trait ToWord {
    // Required method
    fn to_word(&self) -> Word;
}
Expand description

Trait used to convert a type to a Word.

Required Methods§

source

fn to_word(&self) -> Word

Convert the type to a Word.

Implementations on Foreign Types§

source§

impl ToWord for bool

source§

fn to_word(&self) -> Word

source§

impl ToWord for i32

source§

fn to_word(&self) -> Word

source§

impl ToWord for u64

source§

fn to_word(&self) -> Word

source§

impl ToWord for u128

source§

fn to_word(&self) -> Word

source§

impl ToWord for usize

source§

fn to_word(&self) -> Word

Implementors§