pub struct MmrCalculateNewPeaksFromLeafMutationMtIndices;
Expand description
Calculate new MMR peaks from a leaf mutation using Merkle tree indices walk up the tree
Trait Implementations§
Source§impl Clone for MmrCalculateNewPeaksFromLeafMutationMtIndices
impl Clone for MmrCalculateNewPeaksFromLeafMutationMtIndices
Source§fn clone(&self) -> MmrCalculateNewPeaksFromLeafMutationMtIndices
fn clone(&self) -> MmrCalculateNewPeaksFromLeafMutationMtIndices
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 Default for MmrCalculateNewPeaksFromLeafMutationMtIndices
impl Default for MmrCalculateNewPeaksFromLeafMutationMtIndices
Source§fn default() -> MmrCalculateNewPeaksFromLeafMutationMtIndices
fn default() -> MmrCalculateNewPeaksFromLeafMutationMtIndices
Returns the “default value” for a type. Read more
Source§impl DeprecatedSnippet for MmrCalculateNewPeaksFromLeafMutationMtIndices
impl DeprecatedSnippet for MmrCalculateNewPeaksFromLeafMutationMtIndices
Source§fn entrypoint_name(&self) -> String
fn entrypoint_name(&self) -> String
The name of a Snippet Read more
Source§fn input_field_names(&self) -> Vec<String>
fn input_field_names(&self) -> Vec<String>
The input stack
fn input_types(&self) -> Vec<DataType>
Source§fn output_field_names(&self) -> Vec<String>
fn output_field_names(&self) -> Vec<String>
The output stack
fn output_types(&self) -> Vec<DataType>
Source§fn stack_diff(&self) -> isize
fn stack_diff(&self) -> isize
The stack difference
Source§fn function_code(&self, library: &mut Library) -> String
fn function_code(&self, library: &mut Library) -> String
The function
Source§fn crash_conditions(&self) -> Vec<String>
fn crash_conditions(&self) -> Vec<String>
Ways in which this snippet can crash at runtime
Source§fn gen_input_states(&self) -> Vec<InitVmState>
fn gen_input_states(&self) -> Vec<InitVmState>
Examples of valid initial states for running this snippet
fn common_case_input_state(&self) -> InitVmState
fn worst_case_input_state(&self) -> InitVmState
fn rust_shadowing( &self, stack: &mut Vec<BFieldElement>, _std_in: Vec<BFieldElement>, _secret_in: Vec<BFieldElement>, memory: &mut HashMap<BFieldElement, BFieldElement>, )
fn function_code_as_instructions( &self, library: &mut Library, ) -> Vec<LabelledInstruction>
fn link_for_isolated_run(&self) -> Vec<LabelledInstruction>
Source§fn link_and_run_tasm_for_test(
&self,
stack: &mut Vec<BFieldElement>,
std_in: Vec<BFieldElement>,
nondeterminism: NonDeterminism,
) -> Result<VMState>
fn link_and_run_tasm_for_test( &self, stack: &mut Vec<BFieldElement>, std_in: Vec<BFieldElement>, nondeterminism: NonDeterminism, ) -> Result<VMState>
Return Ok(vm_output_state) if execution succeeds, Err(error_message) if VM execution fails,
panics if anything else goes wrong.
fn link_and_run_tasm_for_bench( &self, stack: &mut Vec<BFieldElement>, std_in: Vec<BFieldElement>, nondeterminism: NonDeterminism, ) -> Result<BenchmarkResult>
fn link_and_run_tasm_from_state_for_test( &self, execution_state: &mut InitVmState, ) -> VMState
fn link_and_run_tasm_from_state_for_bench( &self, execution_state: &mut InitVmState, ) -> Result<BenchmarkResult>
Source§impl PartialEq for MmrCalculateNewPeaksFromLeafMutationMtIndices
impl PartialEq for MmrCalculateNewPeaksFromLeafMutationMtIndices
Source§fn eq(&self, other: &MmrCalculateNewPeaksFromLeafMutationMtIndices) -> bool
fn eq(&self, other: &MmrCalculateNewPeaksFromLeafMutationMtIndices) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for MmrCalculateNewPeaksFromLeafMutationMtIndices
impl Eq for MmrCalculateNewPeaksFromLeafMutationMtIndices
impl StructuralPartialEq for MmrCalculateNewPeaksFromLeafMutationMtIndices
Auto Trait Implementations§
impl Freeze for MmrCalculateNewPeaksFromLeafMutationMtIndices
impl RefUnwindSafe for MmrCalculateNewPeaksFromLeafMutationMtIndices
impl Send for MmrCalculateNewPeaksFromLeafMutationMtIndices
impl Sync for MmrCalculateNewPeaksFromLeafMutationMtIndices
impl Unpin for MmrCalculateNewPeaksFromLeafMutationMtIndices
impl UnwindSafe for MmrCalculateNewPeaksFromLeafMutationMtIndices
Blanket Implementations§
Source§impl<S> BasicSnippet for Swhere
S: DeprecatedSnippet,
impl<S> BasicSnippet for Swhere
S: DeprecatedSnippet,
fn inputs(&self) -> Vec<(DataType, String)>
fn outputs(&self) -> Vec<(DataType, String)>
fn entrypoint(&self) -> String
fn code(&self, library: &mut Library) -> Vec<LabelledInstruction>
fn annotated_code(&self, library: &mut Library) -> Vec<LabelledInstruction>
fn link_for_isolated_run(&self) -> Vec<LabelledInstruction>
Source§fn init_stack_for_isolated_run(&self) -> Vec<BFieldElement>
fn init_stack_for_isolated_run(&self) -> Vec<BFieldElement>
Intial stack on program start, when the snippet runs in isolation.
fn stack_diff(&self) -> isize
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more