AddressUtil

Trait AddressUtil 

Source
pub trait AddressUtil: Sized + Ord {
Show 13 methods // Required methods fn type_byte(&self) -> &u8; fn type_byte_mut(&mut self) -> &mut u8; fn is_null_address(&self) -> bool; // 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_cip80_valid_address(&self) -> bool { ... } fn is_contract_address(&self) -> bool { ... } fn maybe_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

Provided Methods§

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 AddressUtil for &[u8]

Source§

fn type_byte(&self) -> &u8

Source§

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

Source§

fn is_null_address(&self) -> bool

Implementors§