Enum elliptic_curve::sec1::Coordinates [−][src]
pub enum Coordinates<'a, C: Curve> { Identity, Compact { x: &'a FieldBytes<C>, }, Compressed { x: &'a FieldBytes<C>, y_is_odd: bool, }, Uncompressed { x: &'a FieldBytes<C>, y: &'a FieldBytes<C>, }, }
Expand description
Enum representing the coordinates of either compressed or uncompressed SEC1-encoded elliptic curve points.
Variants
Identity point (a.k.a. point at infinity)
Compact curve point
Show fields
Fields of Compact
x: &'a FieldBytes<C>
x-coordinate
Compressed curve point
Show fields
Fields of Compressed
Uncompressed curve point
Show fields
Fields of Uncompressed
Implementations
Get the tag octet needed to encode this set of Coordinates
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a, C> RefUnwindSafe for Coordinates<'a, C> where
<<<C as Curve>::UInt as ArrayEncoding>::ByteSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<'a, C> Send for Coordinates<'a, C>
impl<'a, C> Sync for Coordinates<'a, C>
impl<'a, C> Unpin for Coordinates<'a, C>
impl<'a, C> UnwindSafe for Coordinates<'a, C> where
<<<C as Curve>::UInt as ArrayEncoding>::ByteSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self