Trait cry::primitive::scalar::ScalarNumber[][src]

pub trait ScalarNumber: FromBytesRef + Bytes + Debug + Clone {
    const SIZE: usize;

    fn zero() -> Self;
fn one() -> Self;
fn invert(&self) -> Self;
fn reduce(&self) -> Self;
fn neg(&self) -> Self;
fn add(&self, _rhs: &Self) -> Self;
fn mul(&self, _rhs: &Self) -> Self; fn sub(&self, _rhs: &Self) -> Self
    where
        Self: Sized
, { ... } }

Trait for scalar.

Associated Constants

const SIZE: usize[src]

Loading content...

Required methods

fn zero() -> Self[src]

fn one() -> Self[src]

fn invert(&self) -> Self[src]

fn reduce(&self) -> Self[src]

fn neg(&self) -> Self[src]

fn add(&self, _rhs: &Self) -> Self[src]

fn mul(&self, _rhs: &Self) -> Self[src]

Loading content...

Provided methods

fn sub(&self, _rhs: &Self) -> Self where
    Self: Sized
[src]

Loading content...

Implementors

impl ScalarNumber for Scalar[src]

Loading content...