Trait snarkvm_wasm::traits::alloc::AllocBytesGadget[][src]

pub trait AllocBytesGadget<V, F> where
    F: Field,
    V: Into<Option<Vec<u8, Global>>> + ?Sized
{ fn alloc_bytes<Fn, T, CS>(cs: CS, f: Fn) -> Result<Self, SynthesisError>
    where
        Fn: FnOnce() -> Result<T, SynthesisError>,
        CS: ConstraintSystem<F>,
        T: Borrow<V>
;
fn alloc_input_bytes<Fn, T, CS>(
        cs: CS,
        f: Fn
    ) -> Result<Self, SynthesisError>
    where
        Fn: FnOnce() -> Result<T, SynthesisError>,
        CS: ConstraintSystem<F>,
        T: Borrow<V>
; fn alloc_bytes_checked<Fn, T, CS>(
        cs: CS,
        f: Fn
    ) -> Result<Self, SynthesisError>
    where
        Fn: FnOnce() -> Result<T, SynthesisError>,
        CS: ConstraintSystem<F>,
        T: Borrow<V>
, { ... }
fn alloc_input_bytes_checked<Fn, T, CS>(
        cs: CS,
        f: Fn
    ) -> Result<Self, SynthesisError>
    where
        Fn: FnOnce() -> Result<T, SynthesisError>,
        CS: ConstraintSystem<F>,
        T: Borrow<V>
, { ... } }

Required methods

Provided methods

Implementors