pub struct FinalizeCore<N: Network> { /* private fields */ }
Implementations§
Source§impl<N: Network> FinalizeCore<N>
impl<N: Network> FinalizeCore<N>
Sourcepub fn new(name: Identifier<N>) -> Self
pub fn new(name: Identifier<N>) -> Self
Initializes a new finalize with the given name.
Sourcepub const fn name(&self) -> &Identifier<N>
pub const fn name(&self) -> &Identifier<N>
Returns the name of the associated function.
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.
Sourcepub const fn positions(&self) -> &HashMap<Identifier<N>, usize>
pub const fn positions(&self) -> &HashMap<Identifier<N>, usize>
Returns the mapping of Position
s to their index in commands
.
Source§impl<N: Network> FinalizeCore<N>
impl<N: Network> FinalizeCore<N>
Trait Implementations§
Source§impl<N: Clone + Network> Clone for FinalizeCore<N>
impl<N: Clone + Network> Clone for FinalizeCore<N>
Source§fn clone(&self) -> FinalizeCore<N>
fn clone(&self) -> FinalizeCore<N>
Returns a duplicate 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> Debug for FinalizeCore<N>
impl<N: Network> Debug for FinalizeCore<N>
Source§impl<N: Network> Display for FinalizeCore<N>
impl<N: Network> Display for FinalizeCore<N>
Source§impl<N: Network> FromBytes for FinalizeCore<N>
impl<N: Network> FromBytes for FinalizeCore<N>
Source§impl<N: Network> FromStr for FinalizeCore<N>
impl<N: Network> FromStr for FinalizeCore<N>
Source§impl<N: Network> Parser for FinalizeCore<N>
impl<N: Network> Parser for FinalizeCore<N>
Source§fn parse(string: &str) -> ParserResult<'_, Self>
fn parse(string: &str) -> ParserResult<'_, Self>
Parses a string into finalize.
Source§impl<N: Network> ToBytes for FinalizeCore<N>
impl<N: Network> ToBytes for FinalizeCore<N>
Source§impl<N: Network> TypeName for FinalizeCore<N>
impl<N: Network> TypeName for FinalizeCore<N>
impl<N: Eq + Network> Eq for FinalizeCore<N>
impl<N: Network> StructuralPartialEq for FinalizeCore<N>
Auto Trait Implementations§
impl<N> Freeze for FinalizeCore<N>
impl<N> RefUnwindSafe for FinalizeCore<N>where
<N as Environment>::Field: RefUnwindSafe,
N: RefUnwindSafe,
<N as Environment>::Projective: RefUnwindSafe,
<N as Environment>::Scalar: RefUnwindSafe,
impl<N> Send for FinalizeCore<N>
impl<N> Sync for FinalizeCore<N>
impl<N> Unpin for FinalizeCore<N>where
<N as Environment>::Field: Unpin,
N: Unpin,
<N as Environment>::Projective: Unpin,
<N as Environment>::Scalar: Unpin,
impl<N> UnwindSafe for FinalizeCore<N>where
<N as Environment>::Field: UnwindSafe,
N: UnwindSafe,
<N as Environment>::Projective: UnwindSafe,
<N as Environment>::Scalar: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more