Trait cfx_types::address_util::AddressUtil
source · 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§
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)
Object Safety§
This trait is not object safe.