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