Struct snarkvm_synthesizer_program::logic::command::Get
source · pub struct Get<N: Network> { /* private fields */ }
Expand description
A get command, e.g. get accounts[r0] into r1;
.
Gets the value stored at operand
in mapping
and stores the result in destination
.
Implementations§
source§impl<N: Network> Get<N>
impl<N: Network> Get<N>
sourcepub const fn mapping(&self) -> &MappingLocator<N>
pub const fn mapping(&self) -> &MappingLocator<N>
Returns the mapping.
sourcepub const fn destination(&self) -> &Register<N>
pub const fn destination(&self) -> &Register<N>
Returns the destination register.
source§impl<N: Network> Get<N>
impl<N: Network> Get<N>
sourcepub fn finalize(
&self,
stack: &(impl StackMatches<N> + StackProgram<N>),
store: &impl FinalizeStoreTrait<N>,
registers: &mut (impl RegistersLoad<N> + RegistersStore<N>)
) -> Result<()>
pub fn finalize( &self, stack: &(impl StackMatches<N> + StackProgram<N>), store: &impl FinalizeStoreTrait<N>, registers: &mut (impl RegistersLoad<N> + RegistersStore<N>) ) -> Result<()>
Finalizes the command.
Trait Implementations§
impl<N: Network> Eq for Get<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for Get<N>where N: RefUnwindSafe, <N as Environment>::Field: RefUnwindSafe, <N as Environment>::Projective: RefUnwindSafe, <N as Environment>::Scalar: RefUnwindSafe,
impl<N> Send for Get<N>
impl<N> Sync for Get<N>
impl<N> Unpin for Get<N>where N: Unpin, <N as Environment>::Field: Unpin, <N as Environment>::Projective: Unpin, <N as Environment>::Scalar: Unpin,
impl<N> UnwindSafe for Get<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.