pub struct ExtendedPoint { /* private fields */ }
Expand description
This represents an extended point (U, V, Z, T1, T2)
with Z
nonzero, corresponding to the affine point
(U/Z, V/Z)
. We always have T1 * T2 = UV/Z
.
You can do the following things with a point in this form:
- Convert it into a point in the affine form.
- Add it to an
ExtendedPoint
,AffineNielsPoint
orExtendedNielsPoint
. - Double it using
double()
. - Compare it with another extended point using
PartialEq
orct_eq()
.
Implementations§
Source§impl ExtendedPoint
impl ExtendedPoint
Sourcepub fn is_identity(&self) -> Choice
pub fn is_identity(&self) -> Choice
Determines if this point is the identity.
Sourcepub fn is_small_order(&self) -> Choice
pub fn is_small_order(&self) -> Choice
Determines if this point is of small order.
Sourcepub fn is_torsion_free(&self) -> Choice
pub fn is_torsion_free(&self) -> Choice
Determines if this point is torsion free and so is contained in the prime order subgroup.
Sourcepub fn is_prime_order(&self) -> Choice
pub fn is_prime_order(&self) -> Choice
Determines if this point is prime order, or in other words that
the smallest scalar multiplied by this point that produces the
identity is r
. This is equivalent to checking that the point
is both torsion free and not the identity.
Sourcepub fn mul_by_cofactor(&self) -> ExtendedPoint
pub fn mul_by_cofactor(&self) -> ExtendedPoint
Multiplies this element by the cofactor 8
.
Sourcepub fn to_niels(&self) -> ExtendedNielsPoint
pub fn to_niels(&self) -> ExtendedNielsPoint
Performs a pre-processing step that produces an ExtendedNielsPoint
for use in multiple additions.
Sourcepub fn double(&self) -> ExtendedPoint
pub fn double(&self) -> ExtendedPoint
Computes the doubling of a point more efficiently than a point can be added to itself.
Trait Implementations§
Source§impl<'a, 'b> Add<&'b AffineNielsPoint> for &'a ExtendedPoint
impl<'a, 'b> Add<&'b AffineNielsPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, other: &'b AffineNielsPoint) -> ExtendedPoint
fn add(self, other: &'b AffineNielsPoint) -> ExtendedPoint
+
operation. Read moreSource§impl<'b> Add<&'b AffineNielsPoint> for ExtendedPoint
impl<'b> Add<&'b AffineNielsPoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, rhs: &'b AffineNielsPoint) -> ExtendedPoint
fn add(self, rhs: &'b AffineNielsPoint) -> ExtendedPoint
+
operation. Read moreSource§impl<'a, 'b> Add<&'b AffinePoint> for &'a ExtendedPoint
impl<'a, 'b> Add<&'b AffinePoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, other: &'b AffinePoint) -> ExtendedPoint
fn add(self, other: &'b AffinePoint) -> ExtendedPoint
+
operation. Read moreSource§impl<'b> Add<&'b AffinePoint> for ExtendedPoint
impl<'b> Add<&'b AffinePoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, rhs: &'b AffinePoint) -> ExtendedPoint
fn add(self, rhs: &'b AffinePoint) -> ExtendedPoint
+
operation. Read moreSource§impl<'a, 'b> Add<&'b ExtendedNielsPoint> for &'a ExtendedPoint
impl<'a, 'b> Add<&'b ExtendedNielsPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, other: &'b ExtendedNielsPoint) -> ExtendedPoint
fn add(self, other: &'b ExtendedNielsPoint) -> ExtendedPoint
+
operation. Read moreSource§impl<'b> Add<&'b ExtendedNielsPoint> for ExtendedPoint
impl<'b> Add<&'b ExtendedNielsPoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, rhs: &'b ExtendedNielsPoint) -> ExtendedPoint
fn add(self, rhs: &'b ExtendedNielsPoint) -> ExtendedPoint
+
operation. Read moreSource§impl<'a, 'b> Add<&'b ExtendedPoint> for &'a ExtendedPoint
impl<'a, 'b> Add<&'b ExtendedPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, other: &'b ExtendedPoint) -> ExtendedPoint
fn add(self, other: &'b ExtendedPoint) -> ExtendedPoint
+
operation. Read moreSource§impl<'b> Add<&'b ExtendedPoint> for ExtendedPoint
impl<'b> Add<&'b ExtendedPoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, rhs: &'b ExtendedPoint) -> ExtendedPoint
fn add(self, rhs: &'b ExtendedPoint) -> ExtendedPoint
+
operation. Read moreSource§impl<'a, 'b> Add<&'b SubgroupPoint> for &'a ExtendedPoint
impl<'a, 'b> Add<&'b SubgroupPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, other: &'b SubgroupPoint) -> ExtendedPoint
fn add(self, other: &'b SubgroupPoint) -> ExtendedPoint
+
operation. Read moreSource§impl<'b> Add<&'b SubgroupPoint> for ExtendedPoint
impl<'b> Add<&'b SubgroupPoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, rhs: &'b SubgroupPoint) -> ExtendedPoint
fn add(self, rhs: &'b SubgroupPoint) -> ExtendedPoint
+
operation. Read moreSource§impl<'a> Add<AffineNielsPoint> for &'a ExtendedPoint
impl<'a> Add<AffineNielsPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, rhs: AffineNielsPoint) -> ExtendedPoint
fn add(self, rhs: AffineNielsPoint) -> ExtendedPoint
+
operation. Read moreSource§impl Add<AffineNielsPoint> for ExtendedPoint
impl Add<AffineNielsPoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, rhs: AffineNielsPoint) -> ExtendedPoint
fn add(self, rhs: AffineNielsPoint) -> ExtendedPoint
+
operation. Read moreSource§impl<'a> Add<AffinePoint> for &'a ExtendedPoint
impl<'a> Add<AffinePoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, rhs: AffinePoint) -> ExtendedPoint
fn add(self, rhs: AffinePoint) -> ExtendedPoint
+
operation. Read moreSource§impl Add<AffinePoint> for ExtendedPoint
impl Add<AffinePoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, rhs: AffinePoint) -> ExtendedPoint
fn add(self, rhs: AffinePoint) -> ExtendedPoint
+
operation. Read moreSource§impl<'a> Add<ExtendedNielsPoint> for &'a ExtendedPoint
impl<'a> Add<ExtendedNielsPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, rhs: ExtendedNielsPoint) -> ExtendedPoint
fn add(self, rhs: ExtendedNielsPoint) -> ExtendedPoint
+
operation. Read moreSource§impl Add<ExtendedNielsPoint> for ExtendedPoint
impl Add<ExtendedNielsPoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, rhs: ExtendedNielsPoint) -> ExtendedPoint
fn add(self, rhs: ExtendedNielsPoint) -> ExtendedPoint
+
operation. Read moreSource§impl<'a> Add<ExtendedPoint> for &'a ExtendedPoint
impl<'a> Add<ExtendedPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, rhs: ExtendedPoint) -> ExtendedPoint
fn add(self, rhs: ExtendedPoint) -> ExtendedPoint
+
operation. Read moreSource§impl<'a> Add<SubgroupPoint> for &'a ExtendedPoint
impl<'a> Add<SubgroupPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, rhs: SubgroupPoint) -> ExtendedPoint
fn add(self, rhs: SubgroupPoint) -> ExtendedPoint
+
operation. Read moreSource§impl Add<SubgroupPoint> for ExtendedPoint
impl Add<SubgroupPoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, rhs: SubgroupPoint) -> ExtendedPoint
fn add(self, rhs: SubgroupPoint) -> ExtendedPoint
+
operation. Read moreSource§impl Add for ExtendedPoint
impl Add for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
+
operator.Source§fn add(self, rhs: ExtendedPoint) -> ExtendedPoint
fn add(self, rhs: ExtendedPoint) -> ExtendedPoint
+
operation. Read moreSource§impl<'b> AddAssign<&'b AffineNielsPoint> for ExtendedPoint
impl<'b> AddAssign<&'b AffineNielsPoint> for ExtendedPoint
Source§fn add_assign(&mut self, rhs: &'b AffineNielsPoint)
fn add_assign(&mut self, rhs: &'b AffineNielsPoint)
+=
operation. Read moreSource§impl<'b> AddAssign<&'b AffinePoint> for ExtendedPoint
impl<'b> AddAssign<&'b AffinePoint> for ExtendedPoint
Source§fn add_assign(&mut self, rhs: &'b AffinePoint)
fn add_assign(&mut self, rhs: &'b AffinePoint)
+=
operation. Read moreSource§impl<'b> AddAssign<&'b ExtendedNielsPoint> for ExtendedPoint
impl<'b> AddAssign<&'b ExtendedNielsPoint> for ExtendedPoint
Source§fn add_assign(&mut self, rhs: &'b ExtendedNielsPoint)
fn add_assign(&mut self, rhs: &'b ExtendedNielsPoint)
+=
operation. Read moreSource§impl<'b> AddAssign<&'b ExtendedPoint> for ExtendedPoint
impl<'b> AddAssign<&'b ExtendedPoint> for ExtendedPoint
Source§fn add_assign(&mut self, rhs: &'b ExtendedPoint)
fn add_assign(&mut self, rhs: &'b ExtendedPoint)
+=
operation. Read moreSource§impl<'b> AddAssign<&'b SubgroupPoint> for ExtendedPoint
impl<'b> AddAssign<&'b SubgroupPoint> for ExtendedPoint
Source§fn add_assign(&mut self, rhs: &'b SubgroupPoint)
fn add_assign(&mut self, rhs: &'b SubgroupPoint)
+=
operation. Read moreSource§impl AddAssign<AffineNielsPoint> for ExtendedPoint
impl AddAssign<AffineNielsPoint> for ExtendedPoint
Source§fn add_assign(&mut self, rhs: AffineNielsPoint)
fn add_assign(&mut self, rhs: AffineNielsPoint)
+=
operation. Read moreSource§impl AddAssign<AffinePoint> for ExtendedPoint
impl AddAssign<AffinePoint> for ExtendedPoint
Source§fn add_assign(&mut self, rhs: AffinePoint)
fn add_assign(&mut self, rhs: AffinePoint)
+=
operation. Read moreSource§impl AddAssign<ExtendedNielsPoint> for ExtendedPoint
impl AddAssign<ExtendedNielsPoint> for ExtendedPoint
Source§fn add_assign(&mut self, rhs: ExtendedNielsPoint)
fn add_assign(&mut self, rhs: ExtendedNielsPoint)
+=
operation. Read moreSource§impl AddAssign<SubgroupPoint> for ExtendedPoint
impl AddAssign<SubgroupPoint> for ExtendedPoint
Source§fn add_assign(&mut self, rhs: SubgroupPoint)
fn add_assign(&mut self, rhs: SubgroupPoint)
+=
operation. Read moreSource§impl AddAssign for ExtendedPoint
impl AddAssign for ExtendedPoint
Source§fn add_assign(&mut self, rhs: ExtendedPoint)
fn add_assign(&mut self, rhs: ExtendedPoint)
+=
operation. Read moreSource§impl Clone for ExtendedPoint
impl Clone for ExtendedPoint
Source§fn clone(&self) -> ExtendedPoint
fn clone(&self) -> ExtendedPoint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl CofactorCurve for ExtendedPoint
impl CofactorCurve for ExtendedPoint
type Affine = AffinePoint
Source§impl CofactorGroup for ExtendedPoint
impl CofactorGroup for ExtendedPoint
Source§type Subgroup = SubgroupPoint
type Subgroup = SubgroupPoint
Self
implements PrimeGroup
, then Self::Subgroup
may be Self
.Source§fn clear_cofactor(&self) -> Self::Subgroup
fn clear_cofactor(&self) -> Self::Subgroup
self
to the prime-order subgroup by multiplying this element by some
k
-multiple of the cofactor. Read moreSource§fn into_subgroup(self) -> CtOption<Self::Subgroup>
fn into_subgroup(self) -> CtOption<Self::Subgroup>
self
if it is contained in the prime-order subgroup. Read moreSource§fn is_torsion_free(&self) -> Choice
fn is_torsion_free(&self) -> Choice
Source§fn is_small_order(&self) -> Choice
fn is_small_order(&self) -> Choice
Source§impl ConditionallySelectable for ExtendedPoint
impl ConditionallySelectable for ExtendedPoint
Source§fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
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)
self
and other
if choice == 1
; otherwise,
reassign both unto themselves. Read moreSource§impl ConstantTimeEq for ExtendedPoint
impl ConstantTimeEq for ExtendedPoint
Source§impl Curve for ExtendedPoint
impl Curve for ExtendedPoint
Source§type AffineRepr = AffinePoint
type AffineRepr = AffinePoint
Source§fn batch_normalize(p: &[Self], q: &mut [Self::AffineRepr])
fn batch_normalize(p: &[Self], q: &mut [Self::AffineRepr])
p.len() != q.len()
.Source§fn to_affine(&self) -> Self::AffineRepr
fn to_affine(&self) -> Self::AffineRepr
Source§impl Debug for ExtendedPoint
impl Debug for ExtendedPoint
Source§impl Default for ExtendedPoint
impl Default for ExtendedPoint
Source§fn default() -> ExtendedPoint
fn default() -> ExtendedPoint
Returns the identity.
Source§impl Display for ExtendedPoint
impl Display for ExtendedPoint
Source§impl<'a> From<&'a ExtendedPoint> for AffinePoint
impl<'a> From<&'a ExtendedPoint> for AffinePoint
Source§fn from(extended: &'a ExtendedPoint) -> AffinePoint
fn from(extended: &'a ExtendedPoint) -> AffinePoint
Constructs an affine point from an extended point
using the map (U, V, Z, T1, T2) => (U/Z, V/Z)
as Z is always nonzero. This requires a field inversion
and so it is recommended to perform these in a batch
using batch_normalize
instead.
Source§impl<'a> From<&'a SubgroupPoint> for &'a ExtendedPoint
impl<'a> From<&'a SubgroupPoint> for &'a ExtendedPoint
Source§fn from(val: &'a SubgroupPoint) -> &'a ExtendedPoint
fn from(val: &'a SubgroupPoint) -> &'a ExtendedPoint
Source§impl From<AffinePoint> for ExtendedPoint
impl From<AffinePoint> for ExtendedPoint
Source§fn from(affine: AffinePoint) -> ExtendedPoint
fn from(affine: AffinePoint) -> ExtendedPoint
Constructs an extended point (with Z = 1
) from
an affine point using the map (u, v) => (u, v, 1, u, v)
.
Source§impl From<ExtendedPoint> for AffinePoint
impl From<ExtendedPoint> for AffinePoint
Source§fn from(extended: ExtendedPoint) -> AffinePoint
fn from(extended: ExtendedPoint) -> AffinePoint
Source§impl From<SubgroupPoint> for ExtendedPoint
impl From<SubgroupPoint> for ExtendedPoint
Source§fn from(val: SubgroupPoint) -> ExtendedPoint
fn from(val: SubgroupPoint) -> ExtendedPoint
Source§impl Group for ExtendedPoint
impl Group for ExtendedPoint
Source§impl GroupEncoding for ExtendedPoint
impl GroupEncoding for ExtendedPoint
Source§impl<'a, 'b> Mul<&'b Fr> for &'a ExtendedPoint
impl<'a, 'b> Mul<&'b Fr> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
*
operator.Source§impl<'b> Mul<&'b Fr> for ExtendedPoint
impl<'b> Mul<&'b Fr> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
*
operator.Source§impl<'a> Mul<Fr> for &'a ExtendedPoint
impl<'a> Mul<Fr> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
*
operator.Source§impl Mul<Fr> for ExtendedPoint
impl Mul<Fr> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
*
operator.Source§impl<'b> MulAssign<&'b Fr> for ExtendedPoint
impl<'b> MulAssign<&'b Fr> for ExtendedPoint
Source§fn mul_assign(&mut self, rhs: &'b Fr)
fn mul_assign(&mut self, rhs: &'b Fr)
*=
operation. Read moreSource§impl MulAssign<Fr> for ExtendedPoint
impl MulAssign<Fr> for ExtendedPoint
Source§fn mul_assign(&mut self, rhs: Fr)
fn mul_assign(&mut self, rhs: Fr)
*=
operation. Read moreSource§impl Neg for ExtendedPoint
impl Neg for ExtendedPoint
Source§fn neg(self) -> ExtendedPoint
fn neg(self) -> ExtendedPoint
Computes the negation of a point P = (U, V, Z, T)
as -P = (-U, V, Z, -T1, T2)
. The choice of T1
is made without loss of generality.
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§impl PartialEq for ExtendedPoint
impl PartialEq for ExtendedPoint
Source§impl<'a, 'b> Sub<&'b AffineNielsPoint> for &'a ExtendedPoint
impl<'a, 'b> Sub<&'b AffineNielsPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, other: &'b AffineNielsPoint) -> ExtendedPoint
fn sub(self, other: &'b AffineNielsPoint) -> ExtendedPoint
-
operation. Read moreSource§impl<'b> Sub<&'b AffineNielsPoint> for ExtendedPoint
impl<'b> Sub<&'b AffineNielsPoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, rhs: &'b AffineNielsPoint) -> ExtendedPoint
fn sub(self, rhs: &'b AffineNielsPoint) -> ExtendedPoint
-
operation. Read moreSource§impl<'a, 'b> Sub<&'b AffinePoint> for &'a ExtendedPoint
impl<'a, 'b> Sub<&'b AffinePoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, other: &'b AffinePoint) -> ExtendedPoint
fn sub(self, other: &'b AffinePoint) -> ExtendedPoint
-
operation. Read moreSource§impl<'b> Sub<&'b AffinePoint> for ExtendedPoint
impl<'b> Sub<&'b AffinePoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, rhs: &'b AffinePoint) -> ExtendedPoint
fn sub(self, rhs: &'b AffinePoint) -> ExtendedPoint
-
operation. Read moreSource§impl<'a, 'b> Sub<&'b ExtendedNielsPoint> for &'a ExtendedPoint
impl<'a, 'b> Sub<&'b ExtendedNielsPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, other: &'b ExtendedNielsPoint) -> ExtendedPoint
fn sub(self, other: &'b ExtendedNielsPoint) -> ExtendedPoint
-
operation. Read moreSource§impl<'b> Sub<&'b ExtendedNielsPoint> for ExtendedPoint
impl<'b> Sub<&'b ExtendedNielsPoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, rhs: &'b ExtendedNielsPoint) -> ExtendedPoint
fn sub(self, rhs: &'b ExtendedNielsPoint) -> ExtendedPoint
-
operation. Read moreSource§impl<'a, 'b> Sub<&'b ExtendedPoint> for &'a ExtendedPoint
impl<'a, 'b> Sub<&'b ExtendedPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, other: &'b ExtendedPoint) -> ExtendedPoint
fn sub(self, other: &'b ExtendedPoint) -> ExtendedPoint
-
operation. Read moreSource§impl<'b> Sub<&'b ExtendedPoint> for ExtendedPoint
impl<'b> Sub<&'b ExtendedPoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, rhs: &'b ExtendedPoint) -> ExtendedPoint
fn sub(self, rhs: &'b ExtendedPoint) -> ExtendedPoint
-
operation. Read moreSource§impl<'a, 'b> Sub<&'b SubgroupPoint> for &'a ExtendedPoint
impl<'a, 'b> Sub<&'b SubgroupPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, other: &'b SubgroupPoint) -> ExtendedPoint
fn sub(self, other: &'b SubgroupPoint) -> ExtendedPoint
-
operation. Read moreSource§impl<'b> Sub<&'b SubgroupPoint> for ExtendedPoint
impl<'b> Sub<&'b SubgroupPoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, rhs: &'b SubgroupPoint) -> ExtendedPoint
fn sub(self, rhs: &'b SubgroupPoint) -> ExtendedPoint
-
operation. Read moreSource§impl<'a> Sub<AffineNielsPoint> for &'a ExtendedPoint
impl<'a> Sub<AffineNielsPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, rhs: AffineNielsPoint) -> ExtendedPoint
fn sub(self, rhs: AffineNielsPoint) -> ExtendedPoint
-
operation. Read moreSource§impl Sub<AffineNielsPoint> for ExtendedPoint
impl Sub<AffineNielsPoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, rhs: AffineNielsPoint) -> ExtendedPoint
fn sub(self, rhs: AffineNielsPoint) -> ExtendedPoint
-
operation. Read moreSource§impl<'a> Sub<AffinePoint> for &'a ExtendedPoint
impl<'a> Sub<AffinePoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, rhs: AffinePoint) -> ExtendedPoint
fn sub(self, rhs: AffinePoint) -> ExtendedPoint
-
operation. Read moreSource§impl Sub<AffinePoint> for ExtendedPoint
impl Sub<AffinePoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, rhs: AffinePoint) -> ExtendedPoint
fn sub(self, rhs: AffinePoint) -> ExtendedPoint
-
operation. Read moreSource§impl<'a> Sub<ExtendedNielsPoint> for &'a ExtendedPoint
impl<'a> Sub<ExtendedNielsPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, rhs: ExtendedNielsPoint) -> ExtendedPoint
fn sub(self, rhs: ExtendedNielsPoint) -> ExtendedPoint
-
operation. Read moreSource§impl Sub<ExtendedNielsPoint> for ExtendedPoint
impl Sub<ExtendedNielsPoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, rhs: ExtendedNielsPoint) -> ExtendedPoint
fn sub(self, rhs: ExtendedNielsPoint) -> ExtendedPoint
-
operation. Read moreSource§impl<'a> Sub<ExtendedPoint> for &'a ExtendedPoint
impl<'a> Sub<ExtendedPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, rhs: ExtendedPoint) -> ExtendedPoint
fn sub(self, rhs: ExtendedPoint) -> ExtendedPoint
-
operation. Read moreSource§impl<'a> Sub<SubgroupPoint> for &'a ExtendedPoint
impl<'a> Sub<SubgroupPoint> for &'a ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, rhs: SubgroupPoint) -> ExtendedPoint
fn sub(self, rhs: SubgroupPoint) -> ExtendedPoint
-
operation. Read moreSource§impl Sub<SubgroupPoint> for ExtendedPoint
impl Sub<SubgroupPoint> for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, rhs: SubgroupPoint) -> ExtendedPoint
fn sub(self, rhs: SubgroupPoint) -> ExtendedPoint
-
operation. Read moreSource§impl Sub for ExtendedPoint
impl Sub for ExtendedPoint
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
-
operator.Source§fn sub(self, rhs: ExtendedPoint) -> ExtendedPoint
fn sub(self, rhs: ExtendedPoint) -> ExtendedPoint
-
operation. Read moreSource§impl<'b> SubAssign<&'b AffineNielsPoint> for ExtendedPoint
impl<'b> SubAssign<&'b AffineNielsPoint> for ExtendedPoint
Source§fn sub_assign(&mut self, rhs: &'b AffineNielsPoint)
fn sub_assign(&mut self, rhs: &'b AffineNielsPoint)
-=
operation. Read moreSource§impl<'b> SubAssign<&'b AffinePoint> for ExtendedPoint
impl<'b> SubAssign<&'b AffinePoint> for ExtendedPoint
Source§fn sub_assign(&mut self, rhs: &'b AffinePoint)
fn sub_assign(&mut self, rhs: &'b AffinePoint)
-=
operation. Read moreSource§impl<'b> SubAssign<&'b ExtendedNielsPoint> for ExtendedPoint
impl<'b> SubAssign<&'b ExtendedNielsPoint> for ExtendedPoint
Source§fn sub_assign(&mut self, rhs: &'b ExtendedNielsPoint)
fn sub_assign(&mut self, rhs: &'b ExtendedNielsPoint)
-=
operation. Read moreSource§impl<'b> SubAssign<&'b ExtendedPoint> for ExtendedPoint
impl<'b> SubAssign<&'b ExtendedPoint> for ExtendedPoint
Source§fn sub_assign(&mut self, rhs: &'b ExtendedPoint)
fn sub_assign(&mut self, rhs: &'b ExtendedPoint)
-=
operation. Read moreSource§impl<'b> SubAssign<&'b SubgroupPoint> for ExtendedPoint
impl<'b> SubAssign<&'b SubgroupPoint> for ExtendedPoint
Source§fn sub_assign(&mut self, rhs: &'b SubgroupPoint)
fn sub_assign(&mut self, rhs: &'b SubgroupPoint)
-=
operation. Read moreSource§impl SubAssign<AffineNielsPoint> for ExtendedPoint
impl SubAssign<AffineNielsPoint> for ExtendedPoint
Source§fn sub_assign(&mut self, rhs: AffineNielsPoint)
fn sub_assign(&mut self, rhs: AffineNielsPoint)
-=
operation. Read moreSource§impl SubAssign<AffinePoint> for ExtendedPoint
impl SubAssign<AffinePoint> for ExtendedPoint
Source§fn sub_assign(&mut self, rhs: AffinePoint)
fn sub_assign(&mut self, rhs: AffinePoint)
-=
operation. Read moreSource§impl SubAssign<ExtendedNielsPoint> for ExtendedPoint
impl SubAssign<ExtendedNielsPoint> for ExtendedPoint
Source§fn sub_assign(&mut self, rhs: ExtendedNielsPoint)
fn sub_assign(&mut self, rhs: ExtendedNielsPoint)
-=
operation. Read moreSource§impl SubAssign<SubgroupPoint> for ExtendedPoint
impl SubAssign<SubgroupPoint> for ExtendedPoint
Source§fn sub_assign(&mut self, rhs: SubgroupPoint)
fn sub_assign(&mut self, rhs: SubgroupPoint)
-=
operation. Read moreSource§impl SubAssign for ExtendedPoint
impl SubAssign for ExtendedPoint
Source§fn sub_assign(&mut self, rhs: ExtendedPoint)
fn sub_assign(&mut self, rhs: ExtendedPoint)
-=
operation. Read moreSource§impl<T> Sum<T> for ExtendedPointwhere
T: Borrow<ExtendedPoint>,
impl<T> Sum<T> for ExtendedPointwhere
T: Borrow<ExtendedPoint>,
Source§impl WnafGroup for ExtendedPoint
impl WnafGroup for ExtendedPoint
Source§fn recommended_wnaf_for_num_scalars(num_scalars: usize) -> usize
fn recommended_wnaf_for_num_scalars(num_scalars: usize) -> usize
impl Copy for ExtendedPoint
impl Eq for ExtendedPoint
Auto Trait Implementations§
impl Freeze for ExtendedPoint
impl RefUnwindSafe for ExtendedPoint
impl Send for ExtendedPoint
impl Sync for ExtendedPoint
impl Unpin for ExtendedPoint
impl UnwindSafe for ExtendedPoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.