Struct cml_chain_wasm::byron::utils::AddressId
source · pub struct AddressId(/* private fields */);Implementations§
source§impl AddressId
impl AddressId
pub fn to_raw_bytes(&self) -> Vec<u8>
pub fn to_bech32(&self, prefix: &str) -> Result<String, JsError>
pub fn to_hex(&self) -> String
pub fn from_bech32(bech32_str: &str) -> Result<AddressId, JsError>
pub fn from_hex(input: &str) -> Result<AddressId, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<AddressId, JsError>
source§impl AddressId
impl AddressId
pub fn new( addr_type: ByronAddrType, spending_data: &SpendingData, attrs: &AddrAttributes ) -> Self
Trait Implementations§
source§impl FromWasmAbi for AddressId
impl FromWasmAbi for AddressId
source§impl IntoWasmAbi for AddressId
impl IntoWasmAbi for AddressId
source§impl OptionFromWasmAbi for AddressId
impl OptionFromWasmAbi for AddressId
source§impl OptionIntoWasmAbi for AddressId
impl OptionIntoWasmAbi for AddressId
source§impl RefFromWasmAbi for AddressId
impl RefFromWasmAbi for AddressId
source§impl RefMutFromWasmAbi for AddressId
impl RefMutFromWasmAbi for AddressId
Auto Trait Implementations§
impl Freeze for AddressId
impl RefUnwindSafe for AddressId
impl Send for AddressId
impl Sync for AddressId
impl Unpin for AddressId
impl UnwindSafe for AddressId
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
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abisource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.