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