Struct wallet_wasm_js::ElectionPublicKey
source · pub struct ElectionPublicKey(ElectionPublicKey);
Tuple Fields§
§0: ElectionPublicKey
Implementations§
source§impl ElectionPublicKey
impl ElectionPublicKey
pub fn from_hex(hex_data: String) -> Result<ElectionPublicKey, JsValue>
pub fn from_bytes(bytes: &[u8]) -> Result<ElectionPublicKey, JsValue>
Trait Implementations§
source§impl From<ElectionPublicKey> for JsValue
impl From<ElectionPublicKey> for JsValue
source§fn from(value: ElectionPublicKey) -> Self
fn from(value: ElectionPublicKey) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for ElectionPublicKey
impl FromWasmAbi for ElectionPublicKey
source§impl IntoWasmAbi for ElectionPublicKey
impl IntoWasmAbi for ElectionPublicKey
source§impl RefFromWasmAbi for ElectionPublicKey
impl RefFromWasmAbi for ElectionPublicKey
§type Anchor = Ref<'static, ElectionPublicKey>
type Anchor = Ref<'static, ElectionPublicKey>
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 WasmDescribe for ElectionPublicKey
impl WasmDescribe for ElectionPublicKey
Auto Trait Implementations§
impl RefUnwindSafe for ElectionPublicKey
impl Send for ElectionPublicKey
impl Sync for ElectionPublicKey
impl Unpin for ElectionPublicKey
impl UnwindSafe for ElectionPublicKey
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere T: IntoWasmAbi,
§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
.