Struct snarkvm_compiler::TransitionMemory
source · [−]pub struct TransitionMemory<N: Network> { /* private fields */ }
Expand description
An in-memory transition storage.
Trait Implementations
sourceimpl<N: Clone + Network> Clone for TransitionMemory<N> where
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
impl<N: Clone + Network> Clone for TransitionMemory<N> where
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
N::TransitionID: Clone,
sourcefn clone(&self) -> TransitionMemory<N>
fn clone(&self) -> TransitionMemory<N>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<N: Network> TransitionStorage<N> for TransitionMemory<N>
impl<N: Network> TransitionStorage<N> for TransitionMemory<N>
sourcefn locator_map(&self) -> &Self::LocatorMap
fn locator_map(&self) -> &Self::LocatorMap
Returns the transition program IDs and function names.
sourcefn input_store(&self) -> &InputStore<N, Self::InputStorage>
fn input_store(&self) -> &InputStore<N, Self::InputStorage>
Returns the transition input store.
sourcefn output_store(&self) -> &OutputStore<N, Self::OutputStorage>
fn output_store(&self) -> &OutputStore<N, Self::OutputStorage>
Returns the transition output store.
sourcefn finalize_map(&self) -> &Self::FinalizeMap
fn finalize_map(&self) -> &Self::FinalizeMap
Returns the transition finalize inputs.
sourcefn reverse_tpk_map(&self) -> &Self::ReverseTPKMap
fn reverse_tpk_map(&self) -> &Self::ReverseTPKMap
Returns the reverse tpk
map.
sourcefn reverse_tcm_map(&self) -> &Self::ReverseTCMMap
fn reverse_tcm_map(&self) -> &Self::ReverseTCMMap
Returns the reverse tcm
map.
type LocatorMap = MemoryMap<<N as Network>::TransitionID, (ProgramID<N>, Identifier<N>)>
type LocatorMap = MemoryMap<<N as Network>::TransitionID, (ProgramID<N>, Identifier<N>)>
The transition program IDs and function names.
type InputStorage = InputMemory<N>
type InputStorage = InputMemory<N>
The transition inputs.
type OutputStorage = OutputMemory<N>
type OutputStorage = OutputMemory<N>
The transition outputs.
type FinalizeMap = MemoryMap<<N as Network>::TransitionID, Option<Vec<Value<N>, Global>>>
type FinalizeMap = MemoryMap<<N as Network>::TransitionID, Option<Vec<Value<N>, Global>>>
The transition finalize inputs.
type ReverseTPKMap = MemoryMap<Group<N>, <N as Network>::TransitionID>
type ReverseTPKMap = MemoryMap<Group<N>, <N as Network>::TransitionID>
The mapping of transition public key
to transition ID
.
type ReverseTCMMap = MemoryMap<Field<N>, <N as Network>::TransitionID>
type ReverseTCMMap = MemoryMap<Field<N>, <N as Network>::TransitionID>
The mapping of transition commitment
to transition ID
.
sourcefn start_atomic(&self)
fn start_atomic(&self)
Starts an atomic batch write operation.
sourcefn is_atomic_in_progress(&self) -> bool
fn is_atomic_in_progress(&self) -> bool
Checks if an atomic batch is in progress.
sourcefn abort_atomic(&self)
fn abort_atomic(&self)
Aborts an atomic batch write operation.
sourcefn finish_atomic(&self) -> Result<()>
fn finish_atomic(&self) -> Result<()>
Finishes an atomic batch write operation.
sourcefn insert(&self, transition: Transition<N>) -> Result<()>
fn insert(&self, transition: Transition<N>) -> Result<()>
Stores the given transition
into storage.
sourcefn remove(&self, transition_id: &N::TransitionID) -> Result<()>
fn remove(&self, transition_id: &N::TransitionID) -> Result<()>
Removes the input for the given transition ID
.
sourcefn get(&self, transition_id: &N::TransitionID) -> Result<Option<Transition<N>>>
fn get(&self, transition_id: &N::TransitionID) -> Result<Option<Transition<N>>>
Returns the transition for the given transition ID
.
Auto Trait Implementations
impl<N> !RefUnwindSafe for TransitionMemory<N>
impl<N> Send for TransitionMemory<N>
impl<N> Sync for TransitionMemory<N>
impl<N> Unpin for TransitionMemory<N>
impl<N> !UnwindSafe for TransitionMemory<N>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more