pub trait PointArithmetic<C: PrimeCurveParams> {
// Required methods
fn add_assign(lhs: &mut ProjectivePoint<C>, rhs: &ProjectivePoint<C>);
fn add_assign_mixed(lhs: &mut ProjectivePoint<C>, rhs: &AffinePoint<C>);
fn double_in_place(point: &mut ProjectivePoint<C>);
}Expand description
Elliptic point arithmetic implementation
Provides implementation of point arithmetic (point addition, point doubling) which might be optimized for the curve.
Required Methods§
Sourcefn add_assign(lhs: &mut ProjectivePoint<C>, rhs: &ProjectivePoint<C>)
fn add_assign(lhs: &mut ProjectivePoint<C>, rhs: &ProjectivePoint<C>)
Assigns lhs + rhs to lhs.
Sourcefn add_assign_mixed(lhs: &mut ProjectivePoint<C>, rhs: &AffinePoint<C>)
fn add_assign_mixed(lhs: &mut ProjectivePoint<C>, rhs: &AffinePoint<C>)
Assigns lhs + rhs to lhs.
Sourcefn double_in_place(point: &mut ProjectivePoint<C>)
fn double_in_place(point: &mut ProjectivePoint<C>)
Computes point + point and assigns it to point.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".