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: FieldElement51Trait 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 Into<ProjectivePoint> for ProjectivePointZC
impl Into<ProjectivePoint> for ProjectivePointZC
source§fn into(self) -> ProjectivePoint
fn into(self) -> ProjectivePoint
Converts this type into the (usually inferred) input type.
source§impl Into<ProjectivePointZC> for ProjectivePoint
impl Into<ProjectivePointZC> for ProjectivePoint
source§fn into(self) -> ProjectivePointZC
fn into(self) -> ProjectivePointZC
Converts this type into the (usually inferred) 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§
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
source§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.source§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.