Struct switchboard_solana::oracle_program::accounts::ecvrf::ProjectivePoint
source · #[repr(C)]pub struct ProjectivePoint {
pub X: FieldElement51,
pub Y: FieldElement51,
pub Z: FieldElement51,
}
Expand description
A ProjectivePoint
is a point \((X:Y:Z)\) on the \(\mathbb
P^2\) model of the curve.
A point \((x,y)\) in the affine model corresponds to
\((x:y:1)\).
More details on the relationships between the different curve models can be found in the module-level documentation.
Fields§
§X: FieldElement51
§Y: FieldElement51
§Z: FieldElement51
Trait Implementations§
source§impl Clone for ProjectivePoint
impl Clone for ProjectivePoint
source§fn clone(&self) -> ProjectivePoint
fn clone(&self) -> ProjectivePoint
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 Default for ProjectivePoint
impl Default for ProjectivePoint
source§fn default() -> ProjectivePoint
fn default() -> ProjectivePoint
Returns the “default value” for a type. Read more
source§impl From<ProjectivePoint> for ProjectivePointZC
impl From<ProjectivePoint> for ProjectivePointZC
source§fn from(val: ProjectivePoint) -> Self
fn from(val: ProjectivePoint) -> Self
Converts to this type from the input type.
source§impl From<ProjectivePointZC> for ProjectivePoint
impl From<ProjectivePointZC> for ProjectivePoint
source§fn from(val: ProjectivePointZC) -> Self
fn from(val: ProjectivePointZC) -> Self
Converts to this type from the input type.
impl Copy for ProjectivePoint
impl Pod for ProjectivePoint
Auto Trait Implementations§
impl RefUnwindSafe for ProjectivePoint
impl Send for ProjectivePoint
impl Sync for ProjectivePoint
impl Unpin for ProjectivePoint
impl UnwindSafe for ProjectivePoint
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.