pub struct GenesisHash(/* private fields */);
Implementations§
Source§impl GenesisHash
impl GenesisHash
Source§impl GenesisHash
impl GenesisHash
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<GenesisHash, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<GenesisHash, JsError>
- Parse from the direct raw bytes, without any CBOR structure
Trait Implementations§
Source§impl AsRef<GenesisHash> for GenesisHash
impl AsRef<GenesisHash> for GenesisHash
Source§fn as_ref(&self) -> &GenesisHash
fn as_ref(&self) -> &GenesisHash
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for GenesisHash
impl Clone for GenesisHash
Source§fn clone(&self) -> GenesisHash
fn clone(&self) -> GenesisHash
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 GenesisHash
impl Debug for GenesisHash
Source§impl From<GenesisHash> for GenesisHash
impl From<GenesisHash> for GenesisHash
Source§fn from(inner: GenesisHash) -> Self
fn from(inner: GenesisHash) -> Self
Converts to this type from the input type.
Source§impl From<GenesisHash> for GenesisHash
impl From<GenesisHash> for GenesisHash
Source§fn from(wrapper: GenesisHash) -> GenesisHash
fn from(wrapper: GenesisHash) -> GenesisHash
Converts to this type from the input type.
Source§impl From<GenesisHash> for JsValue
impl From<GenesisHash> for JsValue
Source§fn from(value: GenesisHash) -> Self
fn from(value: GenesisHash) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for GenesisHash
impl FromWasmAbi for GenesisHash
Source§impl IntoWasmAbi for GenesisHash
impl IntoWasmAbi for GenesisHash
Source§impl LongRefFromWasmAbi for GenesisHash
impl LongRefFromWasmAbi for GenesisHash
Source§impl OptionFromWasmAbi for GenesisHash
impl OptionFromWasmAbi for GenesisHash
Source§impl OptionIntoWasmAbi for GenesisHash
impl OptionIntoWasmAbi for GenesisHash
Source§impl RefFromWasmAbi for GenesisHash
impl RefFromWasmAbi for GenesisHash
Source§type Anchor = RcRef<GenesisHash>
type Anchor = RcRef<GenesisHash>
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 GenesisHash
impl RefMutFromWasmAbi for GenesisHash
Source§impl TryFromJsValue for GenesisHash
impl TryFromJsValue for GenesisHash
Source§impl VectorFromWasmAbi for GenesisHash
impl VectorFromWasmAbi for GenesisHash
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[GenesisHash]>
Source§impl VectorIntoJsValue for GenesisHash
impl VectorIntoJsValue for GenesisHash
fn vector_into_jsvalue(vector: Box<[GenesisHash]>) -> JsValue
Source§impl VectorIntoWasmAbi for GenesisHash
impl VectorIntoWasmAbi for GenesisHash
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[GenesisHash]>) -> Self::Abi
Source§impl WasmDescribeVector for GenesisHash
impl WasmDescribeVector for GenesisHash
impl SupportsConstructor for GenesisHash
impl SupportsInstanceProperty for GenesisHash
impl SupportsStaticProperty for GenesisHash
Auto Trait Implementations§
impl Freeze for GenesisHash
impl RefUnwindSafe for GenesisHash
impl Send for GenesisHash
impl Sync for GenesisHash
impl Unpin for GenesisHash
impl UnwindSafe for GenesisHash
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::Abi
Source§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
.