[][src]Struct bitcoin_cash::address::Address

pub struct Address<'a> { /* fields omitted */ }

Methods

impl<'a> Address<'a>[src]

pub fn from_hash<P: Into<AddressPrefix<'a>>>(
    prefix: P,
    addr_type: AddressType,
    hash: Hash160
) -> Address<'a>
[src]

pub fn from_cash_addr(cash_addr: &'a str) -> Result<Address<'a>>[src]

pub fn hash(&self) -> &Hash160[src]

pub fn prefix_str(&self) -> &str[src]

pub fn prefix_kind(&self) -> Option<Prefix>[src]

pub fn cash_addr(&self) -> &str[src]

pub fn addr_type(&self) -> AddressType[src]

pub fn with_prefix<P: Into<AddressPrefix<'a>>>(
    &'a self,
    prefix: P
) -> Address<'a>
[src]

Trait Implementations

impl<'a> Clone for Address<'a>[src]

impl<'a> Debug for Address<'a>[src]

impl<'a> Eq for Address<'a>[src]

impl<'a> Hash for Address<'a>[src]

impl<'a> PartialEq<Address<'a>> for Address<'a>[src]

impl<'a> StructuralEq for Address<'a>[src]

impl<'a> StructuralPartialEq for Address<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Address<'a>

impl<'a> Send for Address<'a>

impl<'a> Sync for Address<'a>

impl<'a> Unpin for Address<'a>

impl<'a> UnwindSafe for Address<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.