pub enum KyberPublicKey {
Kyber512(Box<PublicKey>),
Kyber768(Box<PublicKey>),
Kyber1024(Box<PublicKey>),
}Variants§
Implementations§
Trait Implementations§
Source§impl CBORTagged for KyberPublicKey
impl CBORTagged for KyberPublicKey
The CBOR tags assocated with this type. If more than one tag is present,
they are considered equivalent for reading, but only the first one is
used for writing.
Source§impl CBORTaggedDecodable for KyberPublicKey
impl CBORTaggedDecodable for KyberPublicKey
Source§fn from_untagged_cbor(untagged_cbor: CBOR) -> Result<Self>
fn from_untagged_cbor(untagged_cbor: CBOR) -> Result<Self>
Creates an instance of this type by decoding it from untagged CBOR.
Source§fn from_tagged_cbor(cbor: CBOR) -> Result<Self, Error>where
Self: Sized,
fn from_tagged_cbor(cbor: CBOR) -> Result<Self, Error>where
Self: Sized,
Creates an instance of this type by decoding it from tagged CBOR.
Source§impl CBORTaggedEncodable for KyberPublicKey
impl CBORTaggedEncodable for KyberPublicKey
Source§fn untagged_cbor(&self) -> CBOR
fn untagged_cbor(&self) -> CBOR
Returns the untagged CBOR encoding of this instance.
Source§fn tagged_cbor(&self) -> CBOR
fn tagged_cbor(&self) -> CBOR
Returns the tagged CBOR encoding of this instance.
Source§impl Clone for KyberPublicKey
impl Clone for KyberPublicKey
Source§fn clone(&self) -> KyberPublicKey
fn clone(&self) -> KyberPublicKey
Returns a copy 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 KyberPublicKey
impl Debug for KyberPublicKey
Source§impl From<KyberPublicKey> for CBOR
impl From<KyberPublicKey> for CBOR
Source§fn from(value: KyberPublicKey) -> Self
fn from(value: KyberPublicKey) -> Self
Converts to this type from the input type.
Source§impl Hash for KyberPublicKey
impl Hash for KyberPublicKey
Source§impl PartialEq for KyberPublicKey
impl PartialEq for KyberPublicKey
Source§impl TryFrom<CBOR> for KyberPublicKey
impl TryFrom<CBOR> for KyberPublicKey
impl Eq for KyberPublicKey
Auto Trait Implementations§
impl Freeze for KyberPublicKey
impl RefUnwindSafe for KyberPublicKey
impl Send for KyberPublicKey
impl Sync for KyberPublicKey
impl Unpin for KyberPublicKey
impl UnwindSafe for KyberPublicKey
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