pub struct CachedPoint(pub(super) FieldElement2625x4);Expand description
Tuple Fields§
§0: FieldElement2625x4Trait Implementations§
Source§impl Add<&CachedPoint> for &ExtendedPoint
impl Add<&CachedPoint> for &ExtendedPoint
Source§fn add(self, other: &CachedPoint) -> ExtendedPoint
fn add(self, other: &CachedPoint) -> ExtendedPoint
Add an ExtendedPoint and a CachedPoint.
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
The resulting type after applying the
+ operator.Source§impl Clone for CachedPoint
impl Clone for CachedPoint
Source§fn clone(&self) -> CachedPoint
fn clone(&self) -> CachedPoint
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 CachedPoint
impl ConditionallySelectable for CachedPoint
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)
Conditionally swap
self and other if choice == 1; otherwise,
reassign both unto themselves. Read moreSource§impl Debug for CachedPoint
impl Debug for CachedPoint
Source§impl Default for CachedPoint
impl Default for CachedPoint
Source§fn default() -> CachedPoint
fn default() -> CachedPoint
Returns the “default value” for a type. Read more
Source§impl From<ExtendedPoint> for CachedPoint
impl From<ExtendedPoint> for CachedPoint
Source§fn from(P: ExtendedPoint) -> CachedPoint
fn from(P: ExtendedPoint) -> CachedPoint
Converts to this type from the input type.
Source§impl Identity for CachedPoint
impl Identity for CachedPoint
Source§fn identity() -> CachedPoint
fn identity() -> CachedPoint
Returns the identity element of the curve.
Can be used as a constructor.
Source§impl Neg for &CachedPoint
impl Neg for &CachedPoint
Source§fn neg(self) -> CachedPoint
fn neg(self) -> CachedPoint
Lazily negate the point.
§Warning
Because this method does not perform a reduction, it is not safe to repeatedly negate a point.
Source§type Output = CachedPoint
type Output = CachedPoint
The resulting type after applying the
- operator.Source§impl Sub<&CachedPoint> for &ExtendedPoint
impl Sub<&CachedPoint> for &ExtendedPoint
Source§fn sub(self, other: &CachedPoint) -> ExtendedPoint
fn sub(self, other: &CachedPoint) -> ExtendedPoint
Implement subtraction by negating the point and adding.
Empirically, this seems about the same cost as a custom subtraction impl (maybe because the benefit is cancelled by increased code size?)
Source§type Output = ExtendedPoint
type Output = ExtendedPoint
The resulting type after applying the
- operator.impl Copy for CachedPoint
Auto Trait Implementations§
impl Freeze for CachedPoint
impl RefUnwindSafe for CachedPoint
impl Send for CachedPoint
impl Sync for CachedPoint
impl Unpin for CachedPoint
impl UnwindSafe for CachedPoint
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