Struct snarkvm_wasm::traits::utilities::int::Int64[][src]

pub struct Int64 {
    pub bits: Vec<Boolean, Global>,
    pub value: Option<i64>,
}

Fields

bits: Vec<Boolean, Global>value: Option<i64>

Implementations

impl Int64[src]

pub fn constant(value: i64) -> Int64[src]

impl Int64[src]

pub fn alloc_input_fe<F, CS>(
    cs: CS,
    value: <Int64 as Int>::IntegerType
) -> Result<Int64, SynthesisError> where
    CS: ConstraintSystem<F>,
    F: PrimeField
[src]

Allocates the unsigned integer gadget by first converting the little-endian byte representation of the unsigned integer to F elements, (thus reducing the number of input allocations), and then converts this list of F gadgets into the unsigned integer gadget

Trait Implementations

impl<F> Add<F, Int64> for Int64 where
    F: PrimeField
[src]

type ErrorType = SignedIntegerError

impl<F> AllocGadget<<Int64 as Int>::IntegerType, F> for Int64 where
    F: Field
[src]

impl Clone for Int64[src]

impl<F> ComparatorGadget<F> for Int64 where
    F: PrimeField
[src]

impl<F> CondSelectGadget<F> for Int64 where
    F: PrimeField
[src]

impl<F> ConditionalEqGadget<F> for Int64 where
    F: PrimeField
[src]

impl Debug for Int64[src]

impl<F> Div<F, Int64> for Int64 where
    F: PrimeField
[src]

type ErrorType = SignedIntegerError

impl Eq for Int64[src]

impl<F> EqGadget<F> for Int64 where
    F: PrimeField
[src]

impl<F> EvaluateEqGadget<F> for Int64 where
    F: PrimeField
[src]

impl<F> EvaluateLtGadget<F> for Int64 where
    F: PrimeField
[src]

impl Int for Int64[src]

type IntegerType = i64

impl<F> Mul<F, Int64> for Int64 where
    F: PrimeField
[src]

Bitwise multiplication of two signed integer objects.

type ErrorType = SignedIntegerError

impl<F> Neg<F> for Int64 where
    F: PrimeField
[src]

type ErrorType = SignedIntegerError

impl PartialEq<Int64> for Int64[src]

impl PartialOrd<Int64> for Int64[src]

impl<F> Pow<F, Int64> for Int64 where
    F: PrimeField
[src]

type ErrorType = SignedIntegerError

impl<F> RippleCarryAdder<F, Int64> for Int64 where
    F: Field + PrimeField
[src]

impl<F> Sub<F, Int64> for Int64 where
    F: PrimeField
[src]

type ErrorType = SignedIntegerError

Auto Trait Implementations

impl RefUnwindSafe for Int64

impl Send for Int64

impl Sync for Int64

impl Unpin for Int64

impl UnwindSafe for Int64

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<F, T> ConditionalOrEqualsGadget<F> for T where
    T: ConditionalEqGadget<F> + CondSelectGadget<F>,
    F: Field
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<F, T> OrEqualsGadget<F> for T where
    T: ConditionalOrEqualsGadget<F>,
    F: Field
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,