pub struct ProjectiveMontgomeryPoint {
U: FieldElement,
W: FieldElement,
}Expand description
A Projective point in Montgomery form
Fields§
§U: FieldElement§W: FieldElementImplementations§
Source§impl ProjectiveMontgomeryPoint
impl ProjectiveMontgomeryPoint
Sourcepub fn identity() -> ProjectiveMontgomeryPoint
pub fn identity() -> ProjectiveMontgomeryPoint
The identity element of the group: the point at infinity.
Sourcepub fn to_affine(&self) -> MontgomeryPoint
pub fn to_affine(&self) -> MontgomeryPoint
Convert the point to affine form
Trait Implementations§
Source§impl Clone for ProjectiveMontgomeryPoint
impl Clone for ProjectiveMontgomeryPoint
Source§fn clone(&self) -> ProjectiveMontgomeryPoint
fn clone(&self) -> ProjectiveMontgomeryPoint
Returns a duplicate 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 ConditionallySelectable for ProjectiveMontgomeryPoint
impl ConditionallySelectable for ProjectiveMontgomeryPoint
Source§fn conditional_select(
a: &ProjectiveMontgomeryPoint,
b: &ProjectiveMontgomeryPoint,
choice: Choice,
) -> ProjectiveMontgomeryPoint
fn conditional_select( a: &ProjectiveMontgomeryPoint, b: &ProjectiveMontgomeryPoint, choice: Choice, ) -> ProjectiveMontgomeryPoint
Source§fn conditional_assign(&mut self, other: &Self, choice: Choice)
fn conditional_assign(&mut self, other: &Self, choice: Choice)
Source§fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
Conditionally swap
self and other if choice == 1; otherwise,
reassign both unto themselves. Read moreSource§impl Debug for ProjectiveMontgomeryPoint
impl Debug for ProjectiveMontgomeryPoint
impl Copy for ProjectiveMontgomeryPoint
Auto Trait Implementations§
impl Freeze for ProjectiveMontgomeryPoint
impl RefUnwindSafe for ProjectiveMontgomeryPoint
impl Send for ProjectiveMontgomeryPoint
impl Sync for ProjectiveMontgomeryPoint
impl Unpin for ProjectiveMontgomeryPoint
impl UnsafeUnpin for ProjectiveMontgomeryPoint
impl UnwindSafe for ProjectiveMontgomeryPoint
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