Enum cfx_addr::AddressType
source · pub enum AddressType {
Builtin,
Contract,
Null,
User,
Unknown,
}
Variants§
Implementations§
source§impl AddressType
impl AddressType
pub fn parse(text: &str) -> Result<Self, DecodingError>
pub fn from_address<T: AddressUtil>( address_hex: &T ) -> Result<Self, EncodingError>
pub fn to_str(&self) -> &'static str
Trait Implementations§
source§impl Clone for AddressType
impl Clone for AddressType
source§fn clone(&self) -> AddressType
fn clone(&self) -> AddressType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AddressType
impl Debug for AddressType
source§impl Display for AddressType
impl Display for AddressType
source§impl PartialEq for AddressType
impl PartialEq for AddressType
source§fn eq(&self, other: &AddressType) -> bool
fn eq(&self, other: &AddressType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AddressType
impl StructuralPartialEq for AddressType
Auto Trait Implementations§
impl RefUnwindSafe for AddressType
impl Send for AddressType
impl Sync for AddressType
impl Unpin for AddressType
impl UnwindSafe for AddressType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more