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<FinalizeType<N>>
pub fn input_types(&self) -> Vec<FinalizeType<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 for FinalizeCore<N, Command>
impl<N: PartialEq + Network, Command: PartialEq + CommandTrait<N>> PartialEq 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>> StructuralPartialEq for FinalizeCore<N, Command>
Auto Trait Implementations§
impl<N, Command> RefUnwindSafe for FinalizeCore<N, Command>
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>
impl<N, Command> UnwindSafe for FinalizeCore<N, Command>
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 Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.