pub struct JsSecpSignature { /* private fields */ }
Expand description
Secp256k1 signature
Implementations§
Trait Implementations§
Source§impl Clone for JsSecpSignature
impl Clone for JsSecpSignature
Source§fn clone(&self) -> JsSecpSignature
fn clone(&self) -> JsSecpSignature
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 JsSecpSignature
impl Debug for JsSecpSignature
Source§impl From<JsSecpSignature> for JsValue
impl From<JsSecpSignature> for JsValue
Source§fn from(value: JsSecpSignature) -> JsValue
fn from(value: JsSecpSignature) -> JsValue
Converts to this type from the input type.
Source§impl From<SecpSignature> for JsSecpSignature
impl From<SecpSignature> for JsSecpSignature
Source§fn from(inner: SecpSignature) -> JsSecpSignature
fn from(inner: SecpSignature) -> JsSecpSignature
Converts to this type from the input type.
Source§impl FromWasmAbi for JsSecpSignature
impl FromWasmAbi for JsSecpSignature
Source§impl IntoWasmAbi for JsSecpSignature
impl IntoWasmAbi for JsSecpSignature
Source§impl LongRefFromWasmAbi for JsSecpSignature
impl LongRefFromWasmAbi for JsSecpSignature
Source§type Anchor = RcRef<JsSecpSignature>
type Anchor = RcRef<JsSecpSignature>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn long_ref_from_abi(
js: <JsSecpSignature as LongRefFromWasmAbi>::Abi,
) -> <JsSecpSignature as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsSecpSignature as LongRefFromWasmAbi>::Abi, ) -> <JsSecpSignature as LongRefFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl OptionFromWasmAbi for JsSecpSignature
impl OptionFromWasmAbi for JsSecpSignature
Source§fn is_none(abi: &<JsSecpSignature as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsSecpSignature 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 JsSecpSignature
impl OptionIntoWasmAbi for JsSecpSignature
Source§fn none() -> <JsSecpSignature as IntoWasmAbi>::Abi
fn none() -> <JsSecpSignature 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 JsSecpSignature
impl RefFromWasmAbi for JsSecpSignature
Source§type Anchor = RcRef<JsSecpSignature>
type Anchor = RcRef<JsSecpSignature>
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: <JsSecpSignature as RefFromWasmAbi>::Abi,
) -> <JsSecpSignature as RefFromWasmAbi>::Anchor
unsafe fn ref_from_abi( js: <JsSecpSignature as RefFromWasmAbi>::Abi, ) -> <JsSecpSignature as RefFromWasmAbi>::Anchor
Source§impl RefMutFromWasmAbi for JsSecpSignature
impl RefMutFromWasmAbi for JsSecpSignature
Source§type Anchor = RcRefMut<JsSecpSignature>
type Anchor = RcRefMut<JsSecpSignature>
Same as
RefFromWasmAbi::Anchor
Source§unsafe fn ref_mut_from_abi(
js: <JsSecpSignature as RefMutFromWasmAbi>::Abi,
) -> <JsSecpSignature as RefMutFromWasmAbi>::Anchor
unsafe fn ref_mut_from_abi( js: <JsSecpSignature as RefMutFromWasmAbi>::Abi, ) -> <JsSecpSignature as RefMutFromWasmAbi>::Anchor
Same as
RefFromWasmAbi::ref_from_abi
Source§impl TryFromJsValue for JsSecpSignature
impl TryFromJsValue for JsSecpSignature
Source§fn try_from_js_value(
value: JsValue,
) -> Result<JsSecpSignature, <JsSecpSignature as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<JsSecpSignature, <JsSecpSignature as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for JsSecpSignature
impl VectorFromWasmAbi for JsSecpSignature
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi( js: <JsSecpSignature as VectorFromWasmAbi>::Abi, ) -> Box<[JsSecpSignature]>
Source§impl VectorIntoWasmAbi for JsSecpSignature
impl VectorIntoWasmAbi for JsSecpSignature
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi( vector: Box<[JsSecpSignature]>, ) -> <JsSecpSignature as VectorIntoWasmAbi>::Abi
Source§impl Wraps<SecpSignature> for JsSecpSignature
impl Wraps<SecpSignature> for JsSecpSignature
Source§fn inner(&self) -> &SecpSignature
fn inner(&self) -> &SecpSignature
Converts a reference to a WASM type to a reference to the underlying Rust type.
Auto Trait Implementations§
impl Freeze for JsSecpSignature
impl RefUnwindSafe for JsSecpSignature
impl Send for JsSecpSignature
impl Sync for JsSecpSignature
impl Unpin for JsSecpSignature
impl UnwindSafe for JsSecpSignature
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
.