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