Struct cry::primitive::scalar::Scalar[][src]

pub struct Scalar<S: ScalarNumber>(pub S);

Scalar types.

Implementations

impl<S: ScalarNumber> Scalar<S>[src]

pub fn zero() -> Self[src]

pub fn one() -> Self[src]

Trait Implementations

impl<'a, 'b, S: ScalarNumber> Add<&'b Scalar<S>> for &'a Scalar<S>[src]

type Output = Scalar<S>

The resulting type after applying the + operator.

impl<'a, 'b, S: ScalarNumber> Add<&'b Scalar<S>> for Scalar<S>[src]

type Output = Scalar<S>

The resulting type after applying the + operator.

impl<'a, 'b, S: ScalarNumber> Add<Scalar<S>> for &'a Scalar<S>[src]

type Output = Scalar<S>

The resulting type after applying the + operator.

impl<'a, 'b, S: ScalarNumber> Add<Scalar<S>> for Scalar<S>[src]

type Output = Scalar<S>

The resulting type after applying the + operator.

impl<'a, 'b, S: ScalarNumber> AddAssign<&'b Scalar<S>> for Scalar<S>[src]

impl<'a, 'b, S: ScalarNumber> AddAssign<Scalar<S>> for Scalar<S>[src]

impl<S: ScalarNumber> Bytes for Scalar<S>[src]

type OutputSize = S::OutputSize

impl<S: Clone + ScalarNumber> Clone for Scalar<S>[src]

impl<S: Debug + ScalarNumber> Debug for Scalar<S>[src]

impl<S: ScalarNumber> FromBytesRef for Scalar<S>[src]

impl<'a, 'b, S: ScalarNumber, P: DisLogPoint<Scalar = S>> Mul<&'b Point<P>> for &'a Scalar<S>[src]

type Output = Point<P>

The resulting type after applying the * operator.

impl<'a, 'b, S: ScalarNumber, P: DisLogPoint<Scalar = S>> Mul<&'b Point<P>> for Scalar<S>[src]

type Output = Point<P>

The resulting type after applying the * operator.

impl<'a, 'b, S: ScalarNumber, P: DisLogPoint<Scalar = S>> Mul<&'b Scalar<S>> for &'a Point<P>[src]

type Output = Point<P>

The resulting type after applying the * operator.

impl<'a, 'b, S: ScalarNumber, P: DisLogPoint<Scalar = S>> Mul<&'b Scalar<S>> for Point<P>[src]

type Output = Point<P>

The resulting type after applying the * operator.

impl<'a, 'b, S: ScalarNumber> Mul<&'b Scalar<S>> for &'a Scalar<S>[src]

type Output = Scalar<S>

The resulting type after applying the * operator.

impl<'a, 'b, S: ScalarNumber> Mul<&'b Scalar<S>> for Scalar<S>[src]

type Output = Scalar<S>

The resulting type after applying the * operator.

impl<'a, 'b, S: ScalarNumber, P: DisLogPoint<Scalar = S>> Mul<Point<P>> for &'a Scalar<S>[src]

type Output = Point<P>

The resulting type after applying the * operator.

impl<'a, 'b, S: ScalarNumber, P: DisLogPoint<Scalar = S>> Mul<Point<P>> for Scalar<S>[src]

type Output = Point<P>

The resulting type after applying the * operator.

impl<'a, 'b, S: ScalarNumber, P: DisLogPoint<Scalar = S>> Mul<Scalar<S>> for &'a Point<P>[src]

type Output = Point<P>

The resulting type after applying the * operator.

impl<'a, 'b, S: ScalarNumber, P: DisLogPoint<Scalar = S>> Mul<Scalar<S>> for Point<P>[src]

type Output = Point<P>

The resulting type after applying the * operator.

impl<'a, 'b, S: ScalarNumber> Mul<Scalar<S>> for &'a Scalar<S>[src]

type Output = Scalar<S>

The resulting type after applying the * operator.

impl<'a, 'b, S: ScalarNumber> Mul<Scalar<S>> for Scalar<S>[src]

type Output = Scalar<S>

The resulting type after applying the * operator.

impl<'a, 'b, P: DisLogPoint<Scalar = S>, S: ScalarNumber> MulAssign<&'b Scalar<S>> for Point<P>[src]

impl<'a, 'b, S: ScalarNumber> MulAssign<&'b Scalar<S>> for Scalar<S>[src]

impl<'a, 'b, S: ScalarNumber> MulAssign<Scalar<S>> for Scalar<S>[src]

impl<S: ScalarNumber> Neg for Scalar<S>[src]

type Output = Scalar<S>

The resulting type after applying the - operator.

impl<'a, 'b, S: ScalarNumber> Sub<&'b Scalar<S>> for &'a Scalar<S>[src]

type Output = Scalar<S>

The resulting type after applying the - operator.

impl<'a, 'b, S: ScalarNumber> Sub<&'b Scalar<S>> for Scalar<S>[src]

type Output = Scalar<S>

The resulting type after applying the - operator.

impl<'a, 'b, S: ScalarNumber> Sub<Scalar<S>> for &'a Scalar<S>[src]

type Output = Scalar<S>

The resulting type after applying the - operator.

impl<'a, 'b, S: ScalarNumber> Sub<Scalar<S>> for Scalar<S>[src]

type Output = Scalar<S>

The resulting type after applying the - operator.

impl<'a, 'b, S: ScalarNumber> SubAssign<&'b Scalar<S>> for Scalar<S>[src]

impl<'a, 'b, S: ScalarNumber> SubAssign<Scalar<S>> for Scalar<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Scalar<S> where
    S: RefUnwindSafe

impl<S> Send for Scalar<S> where
    S: Send

impl<S> Sync for Scalar<S> where
    S: Sync

impl<S> Unpin for Scalar<S> where
    S: Unpin

impl<S> UnwindSafe for Scalar<S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.