snarkvm_console_algorithms::integers

Trait ScalarTrait

Source
pub trait ScalarTrait:
    'static
    + Add<Output = Self, Output = Self>
    + for<'a> Add<&'a Self>
    + AddAssign
    + for<'a> AddAssign<&'a Self>
    + Clone
    + Copy
    + Compare
    + Debug
    + Deref
    + Div<Output = Self, Output = Self>
    + for<'a> Div<&'a Self>
    + DivAssign
    + for<'a> DivAssign<&'a Self>
    + Double<Output = Self>
    + Eq
    + Equal
    + Inverse<Output = Self>
    + Mul<Output = Self, Output = Self>
    + for<'a> Mul<&'a Self>
    + MulAssign
    + for<'a> MulAssign<&'a Self>
    + Neg<Output = Self>
    + One
    + Parser
    + Pow<Self, Output = Self, Output = Self>
    + for<'a> Pow<&'a Self>
    + Product
    + for<'a> Product<&'a Self>
    + Send
    + SizeInBits
    + SizeInDataBits
    + SizeInBytes
    + Sync
    + Square<Output = Self>
    + Sub<Output = Self, Output = Self>
    + for<'a> Sub<&'a Self>
    + SubAssign
    + for<'a> SubAssign<&'a Self>
    + Sum
    + for<'a> Sum<&'a Self>
    + TypeName
    + Uniform
    + Zero { }
Expand description

Representation of a scalar field element.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<E> ScalarTrait for Scalar<E>
where E: Environment,