Struct snarkvm_compiler::FinalizeTypes
source · [−]pub struct FinalizeTypes<N: Network> { /* private fields */ }
Implementations
sourceimpl<N: Network> FinalizeTypes<N>
impl<N: Network> FinalizeTypes<N>
sourcepub fn matches_interface(
&self,
stack: &Stack<N>,
operands: &[Operand<N>],
interface: &Interface<N>
) -> Result<()>
pub fn matches_interface(
&self,
stack: &Stack<N>,
operands: &[Operand<N>],
interface: &Interface<N>
) -> Result<()>
Checks that the given operands matches the layout of the interface. The ordering of the operands matters.
sourcepub fn matches_record(
&self,
stack: &Stack<N>,
operands: &[Operand<N>],
record_type: &RecordType<N>
) -> Result<()>
pub fn matches_record(
&self,
stack: &Stack<N>,
operands: &[Operand<N>],
record_type: &RecordType<N>
) -> Result<()>
Checks that the given record matches the layout of the record type.
Note: Ordering for owner
and gates
does matter, however ordering
for record data does not matter, as long as all defined members are present.
sourceimpl<N: Network> FinalizeTypes<N>
impl<N: Network> FinalizeTypes<N>
sourcepub fn from_finalize(stack: &Stack<N>, finalize: &Finalize<N>) -> Result<Self>
pub fn from_finalize(stack: &Stack<N>, finalize: &Finalize<N>) -> Result<Self>
Initializes a new instance of FinalizeTypes
for the given finalize.
Checks that the given finalize is well-formed for the given stack.
sourcepub fn contains(&self, register: &Register<N>) -> bool
pub fn contains(&self, register: &Register<N>) -> bool
Returns true
if the given register exists.
sourcepub fn is_input(&self, register: &Register<N>) -> bool
pub fn is_input(&self, register: &Register<N>) -> bool
Returns true
if the given register corresponds to an input register.
sourcepub fn get_type_from_operand(
&self,
stack: &Stack<N>,
operand: &Operand<N>
) -> Result<RegisterType<N>>
pub fn get_type_from_operand(
&self,
stack: &Stack<N>,
operand: &Operand<N>
) -> Result<RegisterType<N>>
Returns the register type of the given operand.
Trait Implementations
sourceimpl<N: Clone + Network> Clone for FinalizeTypes<N>
impl<N: Clone + Network> Clone for FinalizeTypes<N>
sourcefn clone(&self) -> FinalizeTypes<N>
fn clone(&self) -> FinalizeTypes<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: Default + Network> Default for FinalizeTypes<N>
impl<N: Default + Network> Default for FinalizeTypes<N>
sourcefn default() -> FinalizeTypes<N>
fn default() -> FinalizeTypes<N>
Returns the “default value” for a type. Read more
sourceimpl<N: PartialEq + Network> PartialEq<FinalizeTypes<N>> for FinalizeTypes<N>
impl<N: PartialEq + Network> PartialEq<FinalizeTypes<N>> for FinalizeTypes<N>
sourcefn eq(&self, other: &FinalizeTypes<N>) -> bool
fn eq(&self, other: &FinalizeTypes<N>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl<N: Eq + Network> Eq for FinalizeTypes<N>
impl<N: Network> StructuralEq for FinalizeTypes<N>
impl<N: Network> StructuralPartialEq for FinalizeTypes<N>
Auto Trait Implementations
impl<N> RefUnwindSafe for FinalizeTypes<N> where
<N as Environment>::Field: RefUnwindSafe,
impl<N> Send for FinalizeTypes<N>
impl<N> Sync for FinalizeTypes<N>
impl<N> Unpin for FinalizeTypes<N> where
<N as Environment>::Field: Unpin,
impl<N> UnwindSafe for FinalizeTypes<N> where
<N as Environment>::Field: UnwindSafe,
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<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
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