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