pub trait Callback {
// Required methods
fn balance(&self, _: Address) -> U256;
fn nonce(&self, _: Address) -> U256;
fn code(&self, _: Address) -> Vec<u8> ⓘ;
fn storage(&self, _: Address, _: U256) -> M256;
fn exists(&self, _: Address) -> bool;
fn blockhash(&self, _: U256) -> H256;
}Required Methods§
fn balance(&self, _: Address) -> U256
fn nonce(&self, _: Address) -> U256
fn code(&self, _: Address) -> Vec<u8> ⓘ
fn storage(&self, _: Address, _: U256) -> M256
fn exists(&self, _: Address) -> bool
fn blockhash(&self, _: U256) -> H256
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".