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

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

Required methods

Provided methods

Implementors