Struct cml_crypto_wasm::NonceHash
source · pub struct NonceHash(/* private fields */);Implementations§
source§impl NonceHash
impl NonceHash
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<NonceHash, JsError>
pub fn from_hex(input: &str) -> Result<NonceHash, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<NonceHash, JsError>
Trait Implementations§
source§impl FromWasmAbi for NonceHash
impl FromWasmAbi for NonceHash
source§impl IntoWasmAbi for NonceHash
impl IntoWasmAbi for NonceHash
source§impl OptionFromWasmAbi for NonceHash
impl OptionFromWasmAbi for NonceHash
source§impl OptionIntoWasmAbi for NonceHash
impl OptionIntoWasmAbi for NonceHash
source§impl RefFromWasmAbi for NonceHash
impl RefFromWasmAbi for NonceHash
source§impl RefMutFromWasmAbi for NonceHash
impl RefMutFromWasmAbi for NonceHash
Auto Trait Implementations§
impl Freeze for NonceHash
impl RefUnwindSafe for NonceHash
impl Send for NonceHash
impl Sync for NonceHash
impl Unpin for NonceHash
impl UnwindSafe for NonceHash
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.