Struct snarkvm_console_program::Response
source · pub struct Response<N: Network> { /* private fields */ }
Implementations§
source§impl<N: Network> Response<N>
impl<N: Network> Response<N>
sourcepub fn new(
network_id: &U16<N>,
program_id: &ProgramID<N>,
function_name: &Identifier<N>,
num_inputs: usize,
tvk: &Field<N>,
tcm: &Field<N>,
outputs: Vec<Value<N>>,
output_types: &[ValueType<N>],
output_operands: &[Option<Register<N>>]
) -> Result<Self>
pub fn new( network_id: &U16<N>, program_id: &ProgramID<N>, function_name: &Identifier<N>, num_inputs: usize, tvk: &Field<N>, tcm: &Field<N>, outputs: Vec<Value<N>>, output_types: &[ValueType<N>], output_operands: &[Option<Register<N>>] ) -> Result<Self>
Initializes a new response.
sourcepub fn output_ids(&self) -> &[OutputID<N>]
pub fn output_ids(&self) -> &[OutputID<N>]
Returns the output ID for the transition.
Trait Implementations§
source§impl<N: PartialEq + Network> PartialEq for Response<N>
impl<N: PartialEq + Network> PartialEq for Response<N>
impl<N: Eq + Network> Eq for Response<N>
impl<N: Network> StructuralEq for Response<N>
impl<N: Network> StructuralPartialEq for Response<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for Response<N>where N: RefUnwindSafe, <N as Environment>::Field: RefUnwindSafe, <N as Environment>::Projective: RefUnwindSafe, <N as Environment>::Scalar: RefUnwindSafe,
impl<N> Send for Response<N>
impl<N> Sync for Response<N>
impl<N> Unpin for Response<N>where N: Unpin, <N as Environment>::Field: Unpin, <N as Environment>::Projective: Unpin, <N as Environment>::Scalar: Unpin,
impl<N> UnwindSafe for Response<N>where N: UnwindSafe, <N as Environment>::Field: 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
§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.