Struct cml_chain_wasm::crypto::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(inner: GenesisDelegateHash) -> GenesisDelegateHash
fn from(inner: GenesisDelegateHash) -> GenesisDelegateHash
Converts to this type from the input type.
source§impl From<GenesisDelegateHash> for JsValue
impl From<GenesisDelegateHash> for JsValue
source§fn from(value: GenesisDelegateHash) -> JsValue
fn from(value: GenesisDelegateHash) -> JsValue
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 OptionFromWasmAbi for GenesisDelegateHash
impl OptionFromWasmAbi for GenesisDelegateHash
source§fn is_none(abi: &<GenesisDelegateHash as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<GenesisDelegateHash as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None, and otherwise it will be passed to
FromWasmAbi.source§impl OptionIntoWasmAbi for GenesisDelegateHash
impl OptionIntoWasmAbi for GenesisDelegateHash
source§fn none() -> <GenesisDelegateHash as IntoWasmAbi>::Abi
fn none() -> <GenesisDelegateHash as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None branch of this option. Read moresource§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.source§unsafe fn ref_from_abi(
js: <GenesisDelegateHash as RefFromWasmAbi>::Abi
) -> <GenesisDelegateHash as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <GenesisDelegateHash as RefFromWasmAbi>::Abi ) -> <GenesisDelegateHash as RefFromWasmAbi>::Anchor
source§impl RefMutFromWasmAbi for GenesisDelegateHash
impl RefMutFromWasmAbi for GenesisDelegateHash
§type Anchor = RefMut<'static, GenesisDelegateHash>
type Anchor = RefMut<'static, GenesisDelegateHash>
Same as
RefFromWasmAbi::Anchorsource§unsafe fn ref_mut_from_abi(
js: <GenesisDelegateHash as RefMutFromWasmAbi>::Abi
) -> <GenesisDelegateHash as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <GenesisDelegateHash as RefMutFromWasmAbi>::Abi ) -> <GenesisDelegateHash as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abiAuto 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.