Struct snarkvm_synthesizer_program::logic::instruction::Async
source · pub struct Async<N: Network> { /* private fields */ }
Expand description
Invokes the asynchronous call on the operands, producing a future.
Implementations§
source§impl<N: Network> Async<N>
impl<N: Network> Async<N>
sourcepub const fn function_name(&self) -> &Identifier<N>
pub const fn function_name(&self) -> &Identifier<N>
Returns the function name.
sourcepub fn destinations(&self) -> Vec<Register<N>>
pub fn destinations(&self) -> Vec<Register<N>>
Returns the destination register.
source§impl<N: Network> Async<N>
impl<N: Network> Async<N>
sourcepub fn evaluate(
&self,
stack: &(impl StackMatches<N> + StackProgram<N>),
registers: &mut (impl RegistersLoad<N> + RegistersStore<N>)
) -> Result<()>
pub fn evaluate( &self, stack: &(impl StackMatches<N> + StackProgram<N>), registers: &mut (impl RegistersLoad<N> + RegistersStore<N>) ) -> Result<()>
Evaluates the instruction.
sourcepub fn execute<A: Aleo<Network = N>>(
&self,
stack: &(impl StackMatches<N> + StackProgram<N>),
registers: &mut (impl RegistersLoadCircuit<N, A> + RegistersStoreCircuit<N, A>)
) -> Result<()>
pub fn execute<A: Aleo<Network = N>>( &self, stack: &(impl StackMatches<N> + StackProgram<N>), registers: &mut (impl RegistersLoadCircuit<N, A> + RegistersStoreCircuit<N, A>) ) -> Result<()>
Executes the instruction.
sourcepub fn finalize(
&self,
_stack: &(impl StackMatches<N> + StackProgram<N>),
_registers: &mut (impl RegistersLoad<N> + RegistersStore<N>)
) -> Result<()>
pub fn finalize( &self, _stack: &(impl StackMatches<N> + StackProgram<N>), _registers: &mut (impl RegistersLoad<N> + RegistersStore<N>) ) -> Result<()>
Finalizes the instruction.
sourcepub fn output_types(
&self,
stack: &impl StackProgram<N>,
input_types: &[RegisterType<N>]
) -> Result<Vec<RegisterType<N>>>
pub fn output_types( &self, stack: &impl StackProgram<N>, input_types: &[RegisterType<N>] ) -> Result<Vec<RegisterType<N>>>
Returns the output type from the given program and input types.
Trait Implementations§
source§impl<N: Network> From<Async<N>> for Instruction<N>
impl<N: Network> From<Async<N>> for Instruction<N>
source§impl<N: PartialEq + Network> PartialEq for Async<N>
impl<N: PartialEq + Network> PartialEq for Async<N>
impl<N: Eq + Network> Eq for Async<N>
impl<N: Network> StructuralEq for Async<N>
impl<N: Network> StructuralPartialEq for Async<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for Async<N>where N: RefUnwindSafe, <N as Environment>::Field: RefUnwindSafe, <N as Environment>::Projective: RefUnwindSafe, <N as Environment>::Scalar: RefUnwindSafe,
impl<N> Send for Async<N>
impl<N> Sync for Async<N>
impl<N> Unpin for Async<N>where N: Unpin, <N as Environment>::Field: Unpin, <N as Environment>::Projective: Unpin, <N as Environment>::Scalar: Unpin,
impl<N> UnwindSafe for Async<N>where N: UnwindSafe, <N as Environment>::Field: UnwindSafe, <N as Environment>::Projective: UnwindSafe, <N as Environment>::Scalar: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.