Struct snarkvm_synthesizer::program::finalize::Finalize
source · pub struct Finalize<N: Network> { /* private fields */ }Implementations§
source§impl<N: Network> Finalize<N>
impl<N: Network> Finalize<N>
sourcepub fn input_types(&self) -> Vec<PlaintextType<N>>
pub fn input_types(&self) -> Vec<PlaintextType<N>>
Returns the finalize input types.
sourcepub const fn num_writes(&self) -> u16
pub const fn num_writes(&self) -> u16
Returns the number of write commands.
sourcepub fn cost_in_microcredits(&self) -> Result<u64>
pub fn cost_in_microcredits(&self) -> Result<u64>
Returns the minimum number of microcredits required to run the finalize.
Trait Implementations§
source§impl<N: PartialEq + Network> PartialEq<Finalize<N>> for Finalize<N>
impl<N: PartialEq + Network> PartialEq<Finalize<N>> for Finalize<N>
impl<N: Eq + Network> Eq for Finalize<N>
impl<N: Network> StructuralEq for Finalize<N>
impl<N: Network> StructuralPartialEq for Finalize<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for Finalize<N>where N: RefUnwindSafe, <N as Environment>::Field: RefUnwindSafe, <N as Environment>::Projective: RefUnwindSafe, <N as Environment>::Scalar: RefUnwindSafe,
impl<N> Send for Finalize<N>
impl<N> Sync for Finalize<N>
impl<N> Unpin for Finalize<N>where N: Unpin, <N as Environment>::Field: Unpin, <N as Environment>::Projective: Unpin, <N as Environment>::Scalar: Unpin,
impl<N> UnwindSafe for Finalize<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
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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