Struct curve25519_dalek::backend::vector::avx2::edwards::CachedPoint [−][src]
pub struct CachedPoint(pub(super) FieldElement2625x4);simd_backend and (target features avx2 or avx512ifma) and target feature avx2 and non-target feature avx512ifma only.Expand description
Tuple Fields
0: FieldElement2625x4Trait Implementations
Add an ExtendedPoint and a CachedPoint.
type Output = ExtendedPoint
type Output = ExtendedPoint
The resulting type after applying the + operator.
Returns the “default value” for a type. Read more
Performs the conversion.
Returns the identity element of the curve. Can be used as a constructor. Read more
Lazily negate the point.
Warning
Because this method does not perform a reduction, it is not safe to repeatedly negate a point.
type Output = CachedPoint
type Output = CachedPoint
The resulting type after applying the - operator.
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?)
type Output = ExtendedPoint
type Output = ExtendedPoint
The resulting type after applying the - operator.
Auto Trait Implementations
impl RefUnwindSafe for CachedPoint
impl Send for CachedPoint
impl Sync for CachedPoint
impl Unpin for CachedPoint
impl UnwindSafe for CachedPoint
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast(self) -> U
pub fn cast(self) -> U
Numeric cast from self to T.
impl<T> ConditionallyNegatable for T where
T: ConditionallySelectable,
&'a T: for<'a> Neg,
<&'a T as Neg>::Output == T,
impl<T> ConditionallyNegatable for T where
T: ConditionallySelectable,
&'a T: for<'a> Neg,
<&'a T as Neg>::Output == T,
Negate self if choice == Choice(1); otherwise, leave it
unchanged. Read more
pub fn from_bits(t: T) -> T
pub fn from_bits(t: T) -> T
Safe lossless bitwise transmute from T to Self.
pub fn from_cast(t: T) -> T
pub fn from_cast(t: T) -> T
Numeric cast from T to Self.
pub fn into_bits(self) -> U
pub fn into_bits(self) -> U
Safe lossless bitwise transmute from self to T.