Skip to main content

ScalarInt

Trait ScalarInt 

Source
pub trait ScalarInt<I: Interner>:
    Copy
    + Debug
    + Hash
    + Eq {
    // Required methods
    fn to_scalar(self) -> I::Scalar;
    fn try_from_uint(i: impl Into<u128>, size: Size) -> Option<Self>;
}

Required Methods§

Source

fn to_scalar(self) -> I::Scalar

Source

fn try_from_uint(i: impl Into<u128>, size: Size) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§