Trait snarkvm_circuit::IntegerProperties
pub trait IntegerProperties: PrimInt + Debug + Display {
type Dual: IntegerType;
const BITS: u64;
const MAX: Self;
const MIN: Self;
// Required methods
fn is_signed() -> bool;
fn type_name() -> &'static str;
fn into_dual(self) -> Self::Dual;
}
Expand description
Properties common to all integer types.
Required Associated Types§
type Dual: IntegerType
Required Associated Constants§
const MAX: Self
const MAX: Self
Returns the maximum value representable by this integer.
const MIN: Self
const MIN: Self
Returns the minimum value representable by this integer.