pub struct Scalar(/* private fields */);Expand description
A scalar: an integer modulo the curve order n.
Always canonical (in [0, n)). Arithmetic is served by the curve’s
arithmetic driver.
Implementations§
Trait Implementations§
impl Copy for Scalar
impl Eq for Scalar
Source§impl From<Scalar> for P256Scalar
impl From<Scalar> for P256Scalar
impl StructuralPartialEq for Scalar
Auto Trait Implementations§
impl Freeze for Scalar
impl RefUnwindSafe for Scalar
impl Send for Scalar
impl Sync for Scalar
impl Unpin for Scalar
impl UnsafeUnpin for Scalar
impl UnwindSafe for Scalar
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