pub trait AddressUtil: Sized + Ord {
    // Required methods
    fn type_byte(&self) -> &u8;
    fn type_byte_mut(&mut self) -> &mut u8;
    fn is_null_address(&self) -> bool;
    fn evm_map(&self) -> AddressWithSpace;

    // Provided methods
    fn address_type_bits(&self) -> u8 { ... }
    fn set_address_type_bits(&mut self, type_bits: u8) { ... }
    fn is_genesis_valid_address(&self) -> bool { ... }
    fn is_contract_address(&self) -> bool { ... }
    fn is_user_account_address(&self) -> bool { ... }
    fn is_builtin_address(&self) -> bool { ... }
    fn set_contract_type_bits(&mut self) { ... }
    fn set_user_account_type_bits(&mut self) { ... }
}

Required Methods§

source

fn type_byte(&self) -> &u8

source

fn type_byte_mut(&mut self) -> &mut u8

source

fn is_null_address(&self) -> bool

source

fn evm_map(&self) -> AddressWithSpace

Provided Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl AddressUtil for &[u8]

Implementors§