Struct snarkvm_synthesizer_program::logic::command::Set
source · pub struct Set<N: Network> { /* private fields */ }
Expand description
A set command, e.g. set r1 into mapping[r0];
Sets the key
entry as value
in mapping
.
Implementations§
source§impl<N: Network> Set<N>
impl<N: Network> Set<N>
sourcepub const fn mapping_name(&self) -> &Identifier<N>
pub const fn mapping_name(&self) -> &Identifier<N>
Returns the mapping name.
source§impl<N: Network> Set<N>
impl<N: Network> Set<N>
sourcepub fn finalize(
&self,
stack: &(impl StackMatches<N> + StackProgram<N>),
store: &impl FinalizeStoreTrait<N>,
registers: &mut impl RegistersLoad<N>
) -> Result<FinalizeOperation<N>>
pub fn finalize( &self, stack: &(impl StackMatches<N> + StackProgram<N>), store: &impl FinalizeStoreTrait<N>, registers: &mut impl RegistersLoad<N> ) -> Result<FinalizeOperation<N>>
Finalizes the command.
Trait Implementations§
source§impl<N: PartialEq + Network> PartialEq for Set<N>
impl<N: PartialEq + Network> PartialEq for Set<N>
impl<N: Eq + Network> Eq for Set<N>
impl<N: Network> StructuralEq for Set<N>
impl<N: Network> StructuralPartialEq for Set<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for Set<N>where N: RefUnwindSafe, <N as Environment>::Field: RefUnwindSafe, <N as Environment>::Projective: RefUnwindSafe, <N as Environment>::Scalar: RefUnwindSafe,
impl<N> Send for Set<N>
impl<N> Sync for Set<N>
impl<N> Unpin for Set<N>where N: Unpin, <N as Environment>::Field: Unpin, <N as Environment>::Projective: Unpin, <N as Environment>::Scalar: Unpin,
impl<N> UnwindSafe for Set<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.