Struct switchboard_v2::vrf::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
sourceimpl Clone for ProjectivePoint
impl Clone for ProjectivePoint
sourcefn clone(&self) -> ProjectivePoint
fn clone(&self) -> ProjectivePoint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for ProjectivePoint
impl Default for ProjectivePoint
sourcefn default() -> ProjectivePoint
fn default() -> ProjectivePoint
Returns the “default value” for a type. Read more
sourceimpl Into<ProjectivePoint> for ProjectivePointZC
impl Into<ProjectivePoint> for ProjectivePointZC
sourcefn into(self) -> ProjectivePoint
fn into(self) -> ProjectivePoint
Performs the conversion.
sourceimpl Into<ProjectivePointZC> for ProjectivePoint
impl Into<ProjectivePointZC> for ProjectivePoint
sourcefn into(self) -> ProjectivePointZC
fn into(self) -> ProjectivePointZC
Performs the conversion.
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<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more