[][src]Struct curve25519_dalek::montgomery::ProjectivePoint

struct ProjectivePoint {
    pub U: FieldElement51,
    pub W: FieldElement51,

A ProjectivePoint holds a point on the projective line \( \mathbb P(\mathbb F_p) \), which we identify with the Kummer line of the Montgomery curve.


U: FieldElement51W: FieldElement51


impl ProjectivePoint[src]

pub fn to_affine(&self) -> MontgomeryPoint[src]

Dehomogenize this point to affine coordinates.


  • \( u = U / W \) if \( W \neq 0 \);
  • \( 0 \) if \( W \eq 0 \);

Trait Implementations

impl Clone for ProjectivePoint[src]

impl ConditionallySelectable for ProjectivePoint[src]

impl Copy for ProjectivePoint[src]

impl Debug for ProjectivePoint[src]

impl Default for ProjectivePoint[src]

impl Identity for ProjectivePoint[src]

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> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> From<T> for T[src]

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.