#[repr(i32)]pub enum EcPointFormat {
UnknownFormat = 0,
Uncompressed = 1,
Compressed = 2,
DoNotUseCrunchyUncompressed = 3,
}Variants§
UnknownFormat = 0
Uncompressed = 1
Compressed = 2
DoNotUseCrunchyUncompressed = 3
Like UNCOMPRESSED but without the \x04 prefix. Crunchy uses this format. DO NOT USE unless you are a Crunchy user moving to Tink.
Implementations§
Source§impl EcPointFormat
impl EcPointFormat
Source§impl EcPointFormat
impl EcPointFormat
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 EcPointFormat
impl Clone for EcPointFormat
Source§fn clone(&self) -> EcPointFormat
fn clone(&self) -> EcPointFormat
Returns a duplicate 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 EcPointFormat
impl Debug for EcPointFormat
Source§impl Default for EcPointFormat
impl Default for EcPointFormat
Source§fn default() -> EcPointFormat
fn default() -> EcPointFormat
Returns the “default value” for a type. Read more
Source§impl From<EcPointFormat> for i32
impl From<EcPointFormat> for i32
Source§fn from(value: EcPointFormat) -> i32
fn from(value: EcPointFormat) -> i32
Converts to this type from the input type.
Source§impl Hash for EcPointFormat
impl Hash for EcPointFormat
Source§impl Ord for EcPointFormat
impl Ord for EcPointFormat
Source§fn cmp(&self, other: &EcPointFormat) -> Ordering
fn cmp(&self, other: &EcPointFormat) -> 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 for EcPointFormat
impl PartialEq for EcPointFormat
Source§impl PartialOrd for EcPointFormat
impl PartialOrd for EcPointFormat
Source§impl TryFrom<i32> for EcPointFormat
impl TryFrom<i32> for EcPointFormat
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<EcPointFormat, UnknownEnumValue>
fn try_from(value: i32) -> Result<EcPointFormat, UnknownEnumValue>
Performs the conversion.
impl Copy for EcPointFormat
impl Eq for EcPointFormat
impl StructuralPartialEq for EcPointFormat
Auto Trait Implementations§
impl Freeze for EcPointFormat
impl RefUnwindSafe for EcPointFormat
impl Send for EcPointFormat
impl Sync for EcPointFormat
impl Unpin for EcPointFormat
impl UnwindSafe for EcPointFormat
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