pub struct Address<'a> { /* private fields */ }Implementations§
Source§impl<'a> Address<'a>
impl<'a> Address<'a>
pub fn from_hash<P: Into<AddressPrefix<'a>>>( prefix: P, addr_type: AddressType, hash: Hash160, ) -> Address<'a>
pub fn from_cash_addr(cash_addr: &'a str) -> Result<Address<'a>>
pub fn from_redeem_script<P: Into<AddressPrefix<'a>>>( prefix: P, redeem_script: Script, ) -> Result<Address<'a>>
pub fn from_pk<P: Into<AddressPrefix<'a>>>( prefix: P, pubkey: &Pubkey, ) -> Address<'a>
pub fn hash(&self) -> &Hash160
pub fn prefix_str(&self) -> &str
pub fn prefix_kind(&self) -> Option<Prefix>
pub fn cash_addr(&self) -> &str
pub fn addr_type(&self) -> AddressType
pub fn with_prefix<P: Into<AddressPrefix<'a>>>( &'a self, prefix: P, ) -> Address<'a>
pub fn to_owned_address(&self) -> Address<'static>
Trait Implementations§
impl<'a> Eq for Address<'a>
impl<'a> StructuralPartialEq for Address<'a>
Auto Trait Implementations§
impl<'a> Freeze for Address<'a>
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§
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