pub struct CachedPoint(_);
Available on curve25519_dalek_backend="simd" and (target feature avx512ifma or x86-64) only.

Trait Implementations§

source§

impl<'a, 'b> Add<&'b CachedPoint> for &'a ExtendedPoint

source§

fn add(self, other: &'b CachedPoint) -> ExtendedPoint

Add an ExtendedPoint and a CachedPoint.

§

type Output = ExtendedPoint

The resulting type after applying the + operator.
source§

impl Clone for CachedPoint

source§

fn clone(&self) -> CachedPoint

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl ConditionallySelectable for CachedPoint

source§

fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self

Select a or b according to choice. Read more
source§

fn conditional_assign(&mut self, other: &Self, choice: Choice)

Conditionally assign other to self, according to choice. Read more
source§

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 more
source§

impl Debug for CachedPoint

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for CachedPoint

source§

fn default() -> CachedPoint

Returns the “default value” for a type. Read more
source§

impl From<ExtendedPoint> for CachedPoint

source§

fn from(P: ExtendedPoint) -> CachedPoint

Converts to this type from the input type.
source§

impl Identity for CachedPoint

source§

fn identity() -> CachedPoint

Returns the identity element of the curve. Can be used as a constructor.
source§

impl<'a> Neg for &'a CachedPoint

§

type Output = CachedPoint

The resulting type after applying the - operator.
source§

fn neg(self) -> CachedPoint

Performs the unary - operation. Read more
source§

impl<'a, 'b> Sub<&'b CachedPoint> for &'a ExtendedPoint

source§

fn sub(self, other: &'b CachedPoint) -> ExtendedPoint

Implement subtraction by negating the point and adding.

§

type Output = ExtendedPoint

The resulting type after applying the - operator.
source§

impl Copy for CachedPoint

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> Cast<U> for Twhere
    U: FromCast<T>,

source§

fn cast(self) -> U

Numeric cast from self to T.
source§

impl<T> ConditionallyNegatable for Twhere
    T: ConditionallySelectable,
    &'a T: for<'a> Neg<Output = T>,

source§

fn conditional_negate(&mut self, choice: Choice)

Negate self if choice == Choice(1); otherwise, leave it unchanged. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromBits<T> for T

source§

fn from_bits(t: T) -> T

Safe lossless bitwise transmute from T to Self.
source§

impl<T> FromCast<T> for T

source§

fn from_cast(t: T) -> T

Numeric cast from T to Self.
source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> IntoBits<U> for Twhere
    U: FromBits<T>,

source§

fn into_bits(self) -> U

Safe lossless bitwise transmute from self to T.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere
    T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.