Struct leo_ast::stub::finalize_stub::FinalizeStub
source · pub struct FinalizeStub {
pub identifier: Identifier,
pub input: Vec<Input>,
pub output: Vec<Output>,
pub output_type: Type,
pub span: Span,
pub id: NodeID,
}
Expand description
A finalize stub.
Fields§
§identifier: Identifier
The finalize identifier.
input: Vec<Input>
The finalize block’s input parameters.
output: Vec<Output>
The finalize blocks’s output declaration.
output_type: Type
The finalize block’s output type.
span: Span
The entire span of the finalize stub.
id: NodeID
The ID of the node.
Implementations§
source§impl FinalizeStub
impl FinalizeStub
sourcepub fn new(
identifier: Identifier,
input: Vec<Input>,
output: Vec<Output>,
span: Span,
id: NodeID
) -> Self
pub fn new( identifier: Identifier, input: Vec<Input>, output: Vec<Output>, span: Span, id: NodeID ) -> Self
Create a new finalize stub.
pub fn from_snarkvm<N: Network, Command: CommandTrait<N>>( finalize: &FinalizeCore<N, Command>, program: Symbol ) -> Self
Trait Implementations§
source§impl Clone for FinalizeStub
impl Clone for FinalizeStub
source§fn clone(&self) -> FinalizeStub
fn clone(&self) -> FinalizeStub
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 Debug for FinalizeStub
impl Debug for FinalizeStub
source§impl<'de> Deserialize<'de> for FinalizeStub
impl<'de> Deserialize<'de> for FinalizeStub
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for FinalizeStub
impl Display for FinalizeStub
source§impl From<Finalize> for FinalizeStub
impl From<Finalize> for FinalizeStub
source§impl From<FinalizeStub> for Finalize
impl From<FinalizeStub> for Finalize
source§fn from(finalize_stub: FinalizeStub) -> Self
fn from(finalize_stub: FinalizeStub) -> Self
Converts to this type from the input type.
source§impl Node for FinalizeStub
impl Node for FinalizeStub
source§impl PartialEq for FinalizeStub
impl PartialEq for FinalizeStub
source§fn eq(&self, other: &FinalizeStub) -> bool
fn eq(&self, other: &FinalizeStub) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FinalizeStub
impl Serialize for FinalizeStub
impl Eq for FinalizeStub
impl StructuralPartialEq for FinalizeStub
Auto Trait Implementations§
impl Freeze for FinalizeStub
impl RefUnwindSafe for FinalizeStub
impl Send for FinalizeStub
impl Sync for FinalizeStub
impl Unpin for FinalizeStub
impl UnwindSafe for FinalizeStub
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<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
fn take_from_value<D>(
value: &mut Value,
field: &str
) -> Result<T, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
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<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.