Struct cml_crypto_wasm::ScriptDataHash
source · pub struct ScriptDataHash(/* private fields */);Implementations§
source§impl ScriptDataHash
impl ScriptDataHash
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<ScriptDataHash, JsError>
pub fn from_hex(input: &str) -> Result<ScriptDataHash, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<ScriptDataHash, JsError>
Trait Implementations§
source§impl AsRef<ScriptDataHash> for ScriptDataHash
impl AsRef<ScriptDataHash> for ScriptDataHash
source§fn as_ref(&self) -> &ScriptDataHash
fn as_ref(&self) -> &ScriptDataHash
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for ScriptDataHash
impl Clone for ScriptDataHash
source§fn clone(&self) -> ScriptDataHash
fn clone(&self) -> ScriptDataHash
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ScriptDataHash
impl Debug for ScriptDataHash
source§impl From<ScriptDataHash> for JsValue
impl From<ScriptDataHash> for JsValue
source§fn from(value: ScriptDataHash) -> Self
fn from(value: ScriptDataHash) -> Self
Converts to this type from the input type.
source§impl From<ScriptDataHash> for ScriptDataHash
impl From<ScriptDataHash> for ScriptDataHash
source§fn from(wrapper: ScriptDataHash) -> ScriptDataHash
fn from(wrapper: ScriptDataHash) -> ScriptDataHash
Converts to this type from the input type.
source§impl From<ScriptDataHash> for ScriptDataHash
impl From<ScriptDataHash> for ScriptDataHash
source§fn from(inner: ScriptDataHash) -> Self
fn from(inner: ScriptDataHash) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for ScriptDataHash
impl FromWasmAbi for ScriptDataHash
source§impl IntoWasmAbi for ScriptDataHash
impl IntoWasmAbi for ScriptDataHash
source§impl OptionFromWasmAbi for ScriptDataHash
impl OptionFromWasmAbi for ScriptDataHash
source§impl OptionIntoWasmAbi for ScriptDataHash
impl OptionIntoWasmAbi for ScriptDataHash
source§impl RefFromWasmAbi for ScriptDataHash
impl RefFromWasmAbi for ScriptDataHash
§type Anchor = Ref<'static, ScriptDataHash>
type Anchor = Ref<'static, ScriptDataHash>
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§impl RefMutFromWasmAbi for ScriptDataHash
impl RefMutFromWasmAbi for ScriptDataHash
Auto Trait Implementations§
impl Freeze for ScriptDataHash
impl RefUnwindSafe for ScriptDataHash
impl Send for ScriptDataHash
impl Sync for ScriptDataHash
impl Unpin for ScriptDataHash
impl UnwindSafe for ScriptDataHash
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.