pub struct FinalizeCore<N: Network, Command: CommandTrait<N>> { /* private fields */ }Implementations§
source§impl<N: Network, Command: CommandTrait<N>> FinalizeCore<N, Command>
impl<N: Network, Command: CommandTrait<N>> FinalizeCore<N, Command>
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.
source§impl<N: Network, Command: CommandTrait<N>> FinalizeCore<N, Command>
impl<N: Network, Command: CommandTrait<N>> FinalizeCore<N, Command>
sourcepub fn add_command(&mut self, command: Command) -> Result<()>
pub fn add_command(&mut self, command: Command) -> Result<()>
Adds the given command to finalize.
Errors
This method will halt if the maximum number of commands has been reached.
Trait Implementations§
source§impl<N: Clone + Network, Command: Clone + CommandTrait<N>> Clone for FinalizeCore<N, Command>
impl<N: Clone + Network, Command: Clone + CommandTrait<N>> Clone for FinalizeCore<N, Command>
source§fn clone(&self) -> FinalizeCore<N, Command>
fn clone(&self) -> FinalizeCore<N, Command>
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<N: Network, Command: CommandTrait<N>> Debug for FinalizeCore<N, Command>
impl<N: Network, Command: CommandTrait<N>> Debug for FinalizeCore<N, Command>
source§impl<N: Network, Command: CommandTrait<N>> Display for FinalizeCore<N, Command>
impl<N: Network, Command: CommandTrait<N>> Display for FinalizeCore<N, Command>
source§impl<N: Network, Command: CommandTrait<N>> FromBytes for FinalizeCore<N, Command>
impl<N: Network, Command: CommandTrait<N>> FromBytes for FinalizeCore<N, Command>
source§impl<N: Network, Command: CommandTrait<N>> FromStr for FinalizeCore<N, Command>
impl<N: Network, Command: CommandTrait<N>> FromStr for FinalizeCore<N, Command>
source§impl<N: Network, Command: CommandTrait<N>> Parser for FinalizeCore<N, Command>
impl<N: Network, Command: CommandTrait<N>> Parser for FinalizeCore<N, Command>
source§impl<N: PartialEq + Network, Command: PartialEq + CommandTrait<N>> PartialEq<FinalizeCore<N, Command>> for FinalizeCore<N, Command>
impl<N: PartialEq + Network, Command: PartialEq + CommandTrait<N>> PartialEq<FinalizeCore<N, Command>> for FinalizeCore<N, Command>
source§fn eq(&self, other: &FinalizeCore<N, Command>) -> bool
fn eq(&self, other: &FinalizeCore<N, Command>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<N: Network, Command: CommandTrait<N>> ToBytes for FinalizeCore<N, Command>
impl<N: Network, Command: CommandTrait<N>> ToBytes for FinalizeCore<N, Command>
source§impl<N: Network, Command: CommandTrait<N>> TypeName for FinalizeCore<N, Command>
impl<N: Network, Command: CommandTrait<N>> TypeName for FinalizeCore<N, Command>
impl<N: Eq + Network, Command: Eq + CommandTrait<N>> Eq for FinalizeCore<N, Command>
impl<N: Network, Command: CommandTrait<N>> StructuralEq for FinalizeCore<N, Command>
impl<N: Network, Command: CommandTrait<N>> StructuralPartialEq for FinalizeCore<N, Command>
Auto Trait Implementations§
impl<N, Command> RefUnwindSafe for FinalizeCore<N, Command>where Command: RefUnwindSafe, <N as Environment>::Field: RefUnwindSafe,
impl<N, Command> Send for FinalizeCore<N, Command>where Command: Send,
impl<N, Command> Sync for FinalizeCore<N, Command>where Command: Sync,
impl<N, Command> Unpin for FinalizeCore<N, Command>where Command: Unpin, <N as Environment>::Field: Unpin,
impl<N, Command> UnwindSafe for FinalizeCore<N, Command>where Command: UnwindSafe, <N as Environment>::Field: 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
§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
§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
Compare self to
key and return true if they are equal.