Enum tink_proto::EllipticCurveType
source · #[repr(i32)]
pub enum EllipticCurveType {
UnknownCurve,
NistP256,
NistP384,
NistP521,
Curve25519,
}
Variants§
Implementations§
source§impl EllipticCurveType
impl EllipticCurveType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for EllipticCurveType
impl Clone for EllipticCurveType
source§fn clone(&self) -> EllipticCurveType
fn clone(&self) -> EllipticCurveType
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 EllipticCurveType
impl Debug for EllipticCurveType
source§impl Default for EllipticCurveType
impl Default for EllipticCurveType
source§fn default() -> EllipticCurveType
fn default() -> EllipticCurveType
Returns the “default value” for a type. Read more
source§impl From<EllipticCurveType> for i32
impl From<EllipticCurveType> for i32
source§fn from(value: EllipticCurveType) -> i32
fn from(value: EllipticCurveType) -> i32
Converts to this type from the input type.
source§impl Hash for EllipticCurveType
impl Hash for EllipticCurveType
source§impl Ord for EllipticCurveType
impl Ord for EllipticCurveType
source§fn cmp(&self, other: &EllipticCurveType) -> Ordering
fn cmp(&self, other: &EllipticCurveType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<EllipticCurveType> for EllipticCurveType
impl PartialEq<EllipticCurveType> for EllipticCurveType
source§fn eq(&self, other: &EllipticCurveType) -> bool
fn eq(&self, other: &EllipticCurveType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EllipticCurveType> for EllipticCurveType
impl PartialOrd<EllipticCurveType> for EllipticCurveType
source§fn partial_cmp(&self, other: &EllipticCurveType) -> Option<Ordering>
fn partial_cmp(&self, other: &EllipticCurveType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more