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