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