Struct cry::primitive::scalar::Scalar [−][src]
pub struct Scalar<S: ScalarNumber>(pub S);
Expand description
Scalar wraper types.
This type support some operators based on overload.
a + b
a += b
a - b
a -= b
a * b
a *= b
a == b
a != b
Tuple Fields
0: S
Implementations
Trait Implementations
Performs the +=
operation. Read more
Performs the +=
operation. Read more
type OutputSize = S::OutputSize
Generate A type from bytes.
impl<'a, 'b, P: DisLogPoint<Scalar = S>, S: ScalarNumber> MulAssign<&'b Scalar<S>> for Point<P>
impl<'a, 'b, P: DisLogPoint<Scalar = S>, S: ScalarNumber> MulAssign<&'b Scalar<S>> for Point<P>
Performs the *=
operation. Read more
Performs the *=
operation. Read more
Performs the *=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Auto Trait Implementations
impl<S> RefUnwindSafe for Scalar<S> where
S: RefUnwindSafe,
impl<S> UnwindSafe for Scalar<S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more