pub struct KemPublicKey {
pub data: Vec<u8>,
}Expand description
KEM public key
Fields§
§data: Vec<u8>Implementations§
Source§impl KemPublicKey
impl KemPublicKey
Source§impl KemPublicKey
impl KemPublicKey
Sourcepub fn new_from_bytes(data: Vec<u8>) -> KemPublicKey
pub fn new_from_bytes(data: Vec<u8>) -> KemPublicKey
Create a new KEM public key from bytes for WASM
Trait Implementations§
Source§impl Clone for KemPublicKey
impl Clone for KemPublicKey
Source§fn clone(&self) -> KemPublicKey
fn clone(&self) -> KemPublicKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KemPublicKey
impl Debug for KemPublicKey
Source§impl<'de> Deserialize<'de> for KemPublicKey
impl<'de> Deserialize<'de> for KemPublicKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<KemPublicKey> for JsValue
impl From<KemPublicKey> for JsValue
Source§fn from(value: KemPublicKey) -> Self
fn from(value: KemPublicKey) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for KemPublicKey
impl FromWasmAbi for KemPublicKey
Source§impl IntoWasmAbi for KemPublicKey
impl IntoWasmAbi for KemPublicKey
Source§impl LongRefFromWasmAbi for KemPublicKey
impl LongRefFromWasmAbi for KemPublicKey
Source§type Abi = WasmPtr<WasmRefCell<KemPublicKey>>
type Abi = WasmPtr<WasmRefCell<KemPublicKey>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<KemPublicKey>
type Anchor = RcRef<KemPublicKey>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for KemPublicKey
impl OptionFromWasmAbi for KemPublicKey
Source§impl OptionIntoWasmAbi for KemPublicKey
impl OptionIntoWasmAbi for KemPublicKey
Source§impl PartialEq for KemPublicKey
impl PartialEq for KemPublicKey
Source§fn eq(&self, other: &KemPublicKey) -> bool
fn eq(&self, other: &KemPublicKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefFromWasmAbi for KemPublicKey
impl RefFromWasmAbi for KemPublicKey
Source§type Abi = WasmPtr<WasmRefCell<KemPublicKey>>
type Abi = WasmPtr<WasmRefCell<KemPublicKey>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<KemPublicKey>
type Anchor = RcRef<KemPublicKey>
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 KemPublicKey
impl RefMutFromWasmAbi for KemPublicKey
Source§type Abi = WasmPtr<WasmRefCell<KemPublicKey>>
type Abi = WasmPtr<WasmRefCell<KemPublicKey>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<KemPublicKey>
type Anchor = RcRefMut<KemPublicKey>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl Serialize for KemPublicKey
impl Serialize for KemPublicKey
Source§impl TryFromJsValue for KemPublicKey
impl TryFromJsValue for KemPublicKey
Source§impl VectorFromWasmAbi for KemPublicKey
impl VectorFromWasmAbi for KemPublicKey
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[KemPublicKey]>
Source§impl VectorIntoWasmAbi for KemPublicKey
impl VectorIntoWasmAbi for KemPublicKey
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[KemPublicKey]>) -> Self::Abi
Source§impl WasmDescribeVector for KemPublicKey
impl WasmDescribeVector for KemPublicKey
impl Eq for KemPublicKey
impl StructuralPartialEq for KemPublicKey
impl SupportsConstructor for KemPublicKey
impl SupportsInstanceProperty for KemPublicKey
impl SupportsStaticProperty for KemPublicKey
Auto Trait Implementations§
impl Freeze for KemPublicKey
impl RefUnwindSafe for KemPublicKey
impl Send for KemPublicKey
impl Sync for KemPublicKey
impl Unpin for KemPublicKey
impl UnsafeUnpin for KemPublicKey
impl UnwindSafe for KemPublicKey
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::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.