snarkvm_console_algorithms::scalar

Trait Magnitude

Source
pub trait Magnitude:
    IntegerType
    + ToPrimitive
    + Unsigned { }
Expand description

Trait for integers that can be used as an unsigned magnitude. Magnitudes are either used to represent an integer exponent or the right operand in integer shift operations.

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.

Implementations on Foreign Types§

Source§

impl Magnitude for u8

Source§

impl Magnitude for u16

Source§

impl Magnitude for u32

Implementors§