[][src]Struct elliptic_curve::scalar::Scalar

pub struct Scalar<Size: ArrayLength<u8>>(_);

Scalar "wire type": byte array sized appropriately for a given elliptic curve's modulus.

Methods

impl<Size> Scalar<Size> where
    Size: ArrayLength<u8>, 
[src]

pub fn new(bytes: GenericArray<u8, Size>) -> Self[src]

Create a new scalar from the given byte array

Trait Implementations

impl<Size> AsRef<GenericArray<u8, Size>> for Scalar<Size> where
    Size: ArrayLength<u8>, 
[src]

impl<Size> Clone for Scalar<Size> where
    Size: ArrayLength<u8>, 
[src]

impl<Size> From<GenericArray<u8, Size>> for Scalar<Size> where
    Size: ArrayLength<u8>, 
[src]

impl<Size> Zeroize for Scalar<Size> where
    Size: ArrayLength<u8>, 
[src]

Auto Trait Implementations

impl<Size> RefUnwindSafe for Scalar<Size> where
    <Size as ArrayLength<u8>>::ArrayType: RefUnwindSafe

impl<Size> Send for Scalar<Size>

impl<Size> Sync for Scalar<Size>

impl<Size> Unpin for Scalar<Size> where
    <Size as ArrayLength<u8>>::ArrayType: Unpin

impl<Size> UnwindSafe for Scalar<Size> where
    <Size as ArrayLength<u8>>::ArrayType: 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.

impl<Z> Zeroize for Z where
    Z: DefaultIsZeroes
[src]