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