[][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.

Fields

U: FieldElement51W: FieldElement51

Methods

impl ProjectivePoint[src]

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

Dehomogenize this point to affine coordinates.

Return

  • \( 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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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>, 
[src]

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
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.