Struct snarkvm_wasm::traits::utilities::uint::UInt64[][src]

pub struct UInt64 {
    pub bits: Vec<Boolean, Global>,
    pub negated: bool,
    pub value: Option<u64>,
}

Fields

bits: Vec<Boolean, Global>negated: boolvalue: Option<u64>

Implementations

impl UInt64[src]

pub fn constant(value: u64) -> UInt64[src]

Trait Implementations

impl<F> Add<F, UInt64> for UInt64 where
    F: Field + PrimeField
[src]

type ErrorType = SynthesisError

impl<F> AllocGadget<u64, F> for UInt64 where
    F: Field
[src]

impl Clone for UInt64[src]

impl<F> ComparatorGadget<F> for UInt64 where
    F: Field + PrimeField
[src]

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

impl<F> ConditionalEqGadget<F> for UInt64 where
    F: Field
[src]

impl Debug for UInt64[src]

impl Eq for UInt64[src]

impl<F> EqGadget<F> for UInt64 where
    F: Field
[src]

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

impl<F> EvaluateLtGadget<F> for UInt64 where
    F: Field + PrimeField
[src]

impl PartialEq<UInt64> for UInt64[src]

impl PartialOrd<UInt64> for UInt64[src]

impl<F> ToBytesGadget<F> for UInt64 where
    F: Field
[src]

impl UInt for UInt64[src]

pub fn sub_unsafe<F, CS>(
    &self,
    cs: CS,
    other: &UInt64
) -> Result<UInt64, SynthesisError> where
    CS: ConstraintSystem<F>,
    F: PrimeField
[src]

Used for division. Evaluates a - b, and when a - b < 0, returns 0.

Auto Trait Implementations

impl RefUnwindSafe for UInt64

impl Send for UInt64

impl Sync for UInt64

impl Unpin for UInt64

impl UnwindSafe for UInt64

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>,