pub enum DilithiumPublicKey {
Dilithium2(Box<PublicKey>),
Dilithium3(Box<PublicKey>),
Dilithium5(Box<PublicKey>),
}Variants§
Implementations§
Trait Implementations§
Source§impl CBORTagged for DilithiumPublicKey
impl CBORTagged for DilithiumPublicKey
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 DilithiumPublicKey
impl CBORTaggedDecodable for DilithiumPublicKey
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 DilithiumPublicKey
impl CBORTaggedEncodable for DilithiumPublicKey
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 DilithiumPublicKey
impl Clone for DilithiumPublicKey
Source§fn clone(&self) -> DilithiumPublicKey
fn clone(&self) -> DilithiumPublicKey
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 DilithiumPublicKey
impl Debug for DilithiumPublicKey
Source§impl From<DilithiumPublicKey> for CBOR
impl From<DilithiumPublicKey> for CBOR
Source§fn from(value: DilithiumPublicKey) -> Self
fn from(value: DilithiumPublicKey) -> Self
Converts to this type from the input type.
Source§impl Hash for DilithiumPublicKey
impl Hash for DilithiumPublicKey
Source§impl PartialEq for DilithiumPublicKey
impl PartialEq for DilithiumPublicKey
Source§impl TryFrom<CBOR> for DilithiumPublicKey
impl TryFrom<CBOR> for DilithiumPublicKey
impl Eq for DilithiumPublicKey
Auto Trait Implementations§
impl Freeze for DilithiumPublicKey
impl RefUnwindSafe for DilithiumPublicKey
impl Send for DilithiumPublicKey
impl Sync for DilithiumPublicKey
impl Unpin for DilithiumPublicKey
impl UnwindSafe for DilithiumPublicKey
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