Struct cml_chain_wasm::crypto::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
§type Anchor = Ref<'static, NonceHash>
type Anchor = Ref<'static, NonceHash>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§unsafe fn ref_from_abi(
js: <NonceHash as RefFromWasmAbi>::Abi
) -> <NonceHash as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <NonceHash as RefFromWasmAbi>::Abi ) -> <NonceHash as RefFromWasmAbi>::Anchor
source§impl RefMutFromWasmAbi for NonceHash
impl RefMutFromWasmAbi for NonceHash
source§unsafe fn ref_mut_from_abi(
js: <NonceHash as RefMutFromWasmAbi>::Abi
) -> <NonceHash as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <NonceHash as RefMutFromWasmAbi>::Abi ) -> <NonceHash as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abiAuto 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.