Trait snarkvm_wasm::traits::utilities::int::Int[][src]

pub trait Int: Clone + Debug {
    type IntegerType;

    pub const SIZE: usize;

    pub fn one() -> Self;
pub fn zero() -> Self;
pub fn is_constant(&self) -> bool;
pub fn to_bits_le(&self) -> Vec<Boolean, Global>;
pub fn from_bits_le(bits: &[Boolean]) -> Self; pub fn result_is_constant(first: &Self, second: &Self) -> bool { ... } }

Associated Types

Loading content...

Associated Constants

pub const SIZE: usize[src]

Loading content...

Required methods

pub fn one() -> Self[src]

pub fn zero() -> Self[src]

pub fn is_constant(&self) -> bool[src]

Returns true if all bits in this Int are constant

pub fn to_bits_le(&self) -> Vec<Boolean, Global>[src]

pub fn from_bits_le(bits: &[Boolean]) -> Self[src]

Loading content...

Provided methods

pub fn result_is_constant(first: &Self, second: &Self) -> bool[src]

Returns true if both Int objects have constant bits

Loading content...

Implementors

impl Int for Int8[src]

type IntegerType = i8

impl Int for Int16[src]

type IntegerType = i16

impl Int for Int32[src]

type IntegerType = i32

impl Int for Int64[src]

type IntegerType = i64

impl Int for Int128[src]

type IntegerType = i128

Loading content...