pub struct BlockBodyHash(/* private fields */);Implementations§
Source§impl BlockBodyHash
impl BlockBodyHash
Source§impl BlockBodyHash
impl BlockBodyHash
Sourcepub fn to_raw_bytes(&self) -> Vec<u8> ⓘ
pub fn to_raw_bytes(&self) -> Vec<u8> ⓘ
- Direct raw bytes without any CBOR structure
Sourcepub fn from_raw_bytes(bytes: &[u8]) -> Result<BlockBodyHash, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<BlockBodyHash, JsError>
- Parse from the direct raw bytes, without any CBOR structure
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 duplicate 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 LongRefFromWasmAbi for BlockBodyHash
impl LongRefFromWasmAbi 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
Source§type Anchor = RcRef<BlockBodyHash>
type Anchor = RcRef<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
Source§impl TryFromJsValue for BlockBodyHash
impl TryFromJsValue for BlockBodyHash
Source§impl VectorFromWasmAbi for BlockBodyHash
impl VectorFromWasmAbi for BlockBodyHash
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[BlockBodyHash]>
Source§impl VectorIntoJsValue for BlockBodyHash
impl VectorIntoJsValue for BlockBodyHash
fn vector_into_jsvalue(vector: Box<[BlockBodyHash]>) -> JsValue
Source§impl VectorIntoWasmAbi for BlockBodyHash
impl VectorIntoWasmAbi for BlockBodyHash
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[BlockBodyHash]>) -> Self::Abi
Source§impl WasmDescribeVector for BlockBodyHash
impl WasmDescribeVector for BlockBodyHash
impl SupportsConstructor for BlockBodyHash
impl SupportsInstanceProperty for BlockBodyHash
impl SupportsStaticProperty 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§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.