pub struct FinalizeInstruction<N: Network, const VARIANT: u8> { /* private fields */ }Expand description
Finalizes an operation on the operands.
Implementations§
source§impl<N: Network, const VARIANT: u8> FinalizeInstruction<N, VARIANT>
impl<N: Network, const VARIANT: u8> FinalizeInstruction<N, VARIANT>
source§impl<N: Network, const VARIANT: u8> FinalizeInstruction<N, VARIANT>
impl<N: Network, const VARIANT: u8> FinalizeInstruction<N, VARIANT>
sourcepub fn evaluate(
&self,
stack: &impl StackMatches<N> + StackProgram<N>,
registers: &mut impl RegistersLoad<N>
) -> Result<()>
pub fn evaluate( &self, stack: &impl StackMatches<N> + StackProgram<N>, registers: &mut impl RegistersLoad<N> ) -> Result<()>
Evaluates the instruction.
Trait Implementations§
source§impl<N: Clone + Network, const VARIANT: u8> Clone for FinalizeInstruction<N, VARIANT>
impl<N: Clone + Network, const VARIANT: u8> Clone for FinalizeInstruction<N, VARIANT>
source§fn clone(&self) -> FinalizeInstruction<N, VARIANT>
fn clone(&self) -> FinalizeInstruction<N, VARIANT>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<N: Network, const VARIANT: u8> Debug for FinalizeInstruction<N, VARIANT>
impl<N: Network, const VARIANT: u8> Debug for FinalizeInstruction<N, VARIANT>
source§impl<N: Network, const VARIANT: u8> Display for FinalizeInstruction<N, VARIANT>
impl<N: Network, const VARIANT: u8> Display for FinalizeInstruction<N, VARIANT>
source§impl<N: Network, const VARIANT: u8> FinalizeCommandTrait for FinalizeInstruction<N, VARIANT>
impl<N: Network, const VARIANT: u8> FinalizeCommandTrait for FinalizeInstruction<N, VARIANT>
source§fn num_operands(&self) -> usize
fn num_operands(&self) -> usize
Returns the number of operands.
source§impl<N: Network, const VARIANT: u8> FromBytes for FinalizeInstruction<N, VARIANT>
impl<N: Network, const VARIANT: u8> FromBytes for FinalizeInstruction<N, VARIANT>
source§impl<N: Network, const VARIANT: u8> FromStr for FinalizeInstruction<N, VARIANT>
impl<N: Network, const VARIANT: u8> FromStr for FinalizeInstruction<N, VARIANT>
source§impl<N: Network, const VARIANT: u8> Parser for FinalizeInstruction<N, VARIANT>
impl<N: Network, const VARIANT: u8> Parser for FinalizeInstruction<N, VARIANT>
source§impl<N: PartialEq + Network, const VARIANT: u8> PartialEq<FinalizeInstruction<N, VARIANT>> for FinalizeInstruction<N, VARIANT>
impl<N: PartialEq + Network, const VARIANT: u8> PartialEq<FinalizeInstruction<N, VARIANT>> for FinalizeInstruction<N, VARIANT>
source§fn eq(&self, other: &FinalizeInstruction<N, VARIANT>) -> bool
fn eq(&self, other: &FinalizeInstruction<N, VARIANT>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<N: Network, const VARIANT: u8> ToBytes for FinalizeInstruction<N, VARIANT>
impl<N: Network, const VARIANT: u8> ToBytes for FinalizeInstruction<N, VARIANT>
impl<N: Eq + Network, const VARIANT: u8> Eq for FinalizeInstruction<N, VARIANT>
impl<N: Network, const VARIANT: u8> StructuralEq for FinalizeInstruction<N, VARIANT>
impl<N: Network, const VARIANT: u8> StructuralPartialEq for FinalizeInstruction<N, VARIANT>
Auto Trait Implementations§
impl<N, const VARIANT: u8> RefUnwindSafe for FinalizeInstruction<N, VARIANT>where N: RefUnwindSafe, <N as Environment>::Field: RefUnwindSafe, <N as Environment>::Projective: RefUnwindSafe, <N as Environment>::Scalar: RefUnwindSafe,
impl<N, const VARIANT: u8> Send for FinalizeInstruction<N, VARIANT>
impl<N, const VARIANT: u8> Sync for FinalizeInstruction<N, VARIANT>
impl<N, const VARIANT: u8> Unpin for FinalizeInstruction<N, VARIANT>where N: Unpin, <N as Environment>::Field: Unpin, <N as Environment>::Projective: Unpin, <N as Environment>::Scalar: Unpin,
impl<N, const VARIANT: u8> UnwindSafe for FinalizeInstruction<N, VARIANT>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.