Struct snarkvm_debug::prelude::InclusionAssignment
pub struct InclusionAssignment<N>where
N: Network,{ /* private fields */ }Implementations§
§impl<N> InclusionAssignment<N>where
N: Network,
impl<N> InclusionAssignment<N>where
N: Network,
pub fn new(
state_path: StatePath<N>,
commitment: Field<N>,
gamma: Group<N>,
serial_number: Field<N>,
local_state_root: <N as Network>::TransactionID,
is_global: bool
) -> InclusionAssignment<N>
pub fn new( state_path: StatePath<N>, commitment: Field<N>, gamma: Group<N>, serial_number: Field<N>, local_state_root: <N as Network>::TransactionID, is_global: bool ) -> InclusionAssignment<N>
Initializes a new inclusion assignment.
pub fn to_circuit_assignment<A>(
&self
) -> Result<Assignment<<N as Environment>::Field>, Error>where
A: Aleo<Network = N>,
pub fn to_circuit_assignment<A>(
&self
) -> Result<Assignment<<N as Environment>::Field>, Error>where
A: Aleo<Network = N>,
Trait Implementations§
§impl<N> Clone for InclusionAssignment<N>
impl<N> Clone for InclusionAssignment<N>
§fn clone(&self) -> InclusionAssignment<N>
fn clone(&self) -> InclusionAssignment<N>
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 moreAuto Trait Implementations§
impl<N> RefUnwindSafe for InclusionAssignment<N>where
N: RefUnwindSafe,
<N as Network>::BlockHash: RefUnwindSafe,
<N as Environment>::Field: RefUnwindSafe,
<N as Environment>::Projective: RefUnwindSafe,
<N as Network>::StateRoot: RefUnwindSafe,
<N as Network>::TransactionID: RefUnwindSafe,
impl<N> Send for InclusionAssignment<N>
impl<N> Sync for InclusionAssignment<N>
impl<N> Unpin for InclusionAssignment<N>where
N: Unpin,
<N as Network>::BlockHash: Unpin,
<N as Environment>::Field: Unpin,
<N as Environment>::Projective: Unpin,
<N as Network>::StateRoot: Unpin,
<N as Network>::TransactionID: Unpin,
impl<N> UnwindSafe for InclusionAssignment<N>where
N: UnwindSafe,
<N as Network>::BlockHash: UnwindSafe,
<N as Environment>::Field: UnwindSafe,
<N as Environment>::Projective: UnwindSafe,
<N as Network>::StateRoot: UnwindSafe,
<N as Network>::TransactionID: 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