pub struct VRFKeyHash(/* private fields */);Implementations§
Source§impl VRFKeyHash
impl VRFKeyHash
Source§impl VRFKeyHash
impl VRFKeyHash
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<VRFKeyHash, JsError>
pub fn from_raw_bytes(bytes: &[u8]) -> Result<VRFKeyHash, JsError>
- Parse from the direct raw bytes, without any CBOR structure
Trait Implementations§
Source§impl AsRef<VRFKeyHash> for VRFKeyHash
impl AsRef<VRFKeyHash> for VRFKeyHash
Source§fn as_ref(&self) -> &VRFKeyHash
fn as_ref(&self) -> &VRFKeyHash
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for VRFKeyHash
impl Clone for VRFKeyHash
Source§fn clone(&self) -> VRFKeyHash
fn clone(&self) -> VRFKeyHash
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 VRFKeyHash
impl Debug for VRFKeyHash
Source§impl From<VRFKeyHash> for JsValue
impl From<VRFKeyHash> for JsValue
Source§fn from(value: VRFKeyHash) -> JsValue
fn from(value: VRFKeyHash) -> JsValue
Converts to this type from the input type.
Source§impl From<VRFKeyHash> for VRFKeyHash
impl From<VRFKeyHash> for VRFKeyHash
Source§fn from(inner: VRFKeyHash) -> VRFKeyHash
fn from(inner: VRFKeyHash) -> VRFKeyHash
Converts to this type from the input type.
Source§impl FromWasmAbi for VRFKeyHash
impl FromWasmAbi for VRFKeyHash
Source§impl IntoWasmAbi for VRFKeyHash
impl IntoWasmAbi for VRFKeyHash
Source§impl LongRefFromWasmAbi for VRFKeyHash
impl LongRefFromWasmAbi for VRFKeyHash
Source§type Anchor = RcRef<VRFKeyHash>
type Anchor = RcRef<VRFKeyHash>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(
js: <VRFKeyHash as LongRefFromWasmAbi>::Abi,
) -> <VRFKeyHash as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <VRFKeyHash as LongRefFromWasmAbi>::Abi, ) -> <VRFKeyHash as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for VRFKeyHash
impl OptionFromWasmAbi for VRFKeyHash
Source§fn is_none(abi: &<VRFKeyHash as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<VRFKeyHash as FromWasmAbi>::Abi) -> bool
Tests whether the argument is a “none” instance. If so it will be
deserialized as
None, and otherwise it will be passed to
FromWasmAbi.Source§impl OptionIntoWasmAbi for VRFKeyHash
impl OptionIntoWasmAbi for VRFKeyHash
Source§fn none() -> <VRFKeyHash as IntoWasmAbi>::Abi
fn none() -> <VRFKeyHash as IntoWasmAbi>::Abi
Returns an ABI instance indicating “none”, which JS will interpret as
the
None branch of this option. Read moreSource§impl RefFromWasmAbi for VRFKeyHash
impl RefFromWasmAbi for VRFKeyHash
Source§type Anchor = RcRef<VRFKeyHash>
type Anchor = RcRef<VRFKeyHash>
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§unsafe fn ref_from_abi(
js: <VRFKeyHash as RefFromWasmAbi>::Abi,
) -> <VRFKeyHash as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <VRFKeyHash as RefFromWasmAbi>::Abi, ) -> <VRFKeyHash as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for VRFKeyHash
impl RefMutFromWasmAbi for VRFKeyHash
Source§type Anchor = RcRefMut<VRFKeyHash>
type Anchor = RcRefMut<VRFKeyHash>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(
js: <VRFKeyHash as RefMutFromWasmAbi>::Abi,
) -> <VRFKeyHash as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <VRFKeyHash as RefMutFromWasmAbi>::Abi, ) -> <VRFKeyHash as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl TryFromJsValue for VRFKeyHash
impl TryFromJsValue for VRFKeyHash
Source§fn try_from_js_value(
value: JsValue,
) -> Result<VRFKeyHash, <VRFKeyHash as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<VRFKeyHash, <VRFKeyHash as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for VRFKeyHash
impl VectorFromWasmAbi for VRFKeyHash
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <VRFKeyHash as VectorFromWasmAbi>::Abi, ) -> Box<[VRFKeyHash]>
Source§impl VectorIntoWasmAbi for VRFKeyHash
impl VectorIntoWasmAbi for VRFKeyHash
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[VRFKeyHash]>, ) -> <VRFKeyHash as VectorIntoWasmAbi>::Abi
Auto Trait Implementations§
impl Freeze for VRFKeyHash
impl RefUnwindSafe for VRFKeyHash
impl Send for VRFKeyHash
impl Sync for VRFKeyHash
impl Unpin for VRFKeyHash
impl UnwindSafe for VRFKeyHash
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.