pub enum EcParameters {
NamedCurve(ObjectIdentifierAsn1),
}
Variants§
NamedCurve(ObjectIdentifierAsn1)
Implementations§
source§impl EcParameters
impl EcParameters
pub fn curve_oid(&self) -> &ObjectIdentifier
Trait Implementations§
source§impl Clone for EcParameters
impl Clone for EcParameters
source§fn clone(&self) -> EcParameters
fn clone(&self) -> EcParameters
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 EcParameters
impl Debug for EcParameters
source§impl<'de> Deserialize<'de> for EcParameters
impl<'de> Deserialize<'de> for EcParameters
source§fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Self, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ObjectIdentifier> for EcParameters
impl From<ObjectIdentifier> for EcParameters
source§fn from(oid: ObjectIdentifier) -> Self
fn from(oid: ObjectIdentifier) -> Self
Converts to this type from the input type.
source§impl From<ObjectIdentifierAsn1> for EcParameters
impl From<ObjectIdentifierAsn1> for EcParameters
source§fn from(oid: ObjectIdentifierAsn1) -> Self
fn from(oid: ObjectIdentifierAsn1) -> Self
Converts to this type from the input type.
source§impl PartialEq<EcParameters> for EcParameters
impl PartialEq<EcParameters> for EcParameters
source§fn eq(&self, other: &EcParameters) -> bool
fn eq(&self, other: &EcParameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EcParameters
impl Serialize for EcParameters
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for EcParameters
impl StructuralEq for EcParameters
impl StructuralPartialEq for EcParameters
Auto Trait Implementations§
impl RefUnwindSafe for EcParameters
impl Send for EcParameters
impl Sync for EcParameters
impl Unpin for EcParameters
impl UnwindSafe for EcParameters
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