Struct snarkvm_console_program::Response
source · [−]pub struct Response<N: Network> { /* private fields */ }
Implementations
sourceimpl<N: Network> Response<N>
impl<N: Network> Response<N>
sourcepub fn new(
program_id: &ProgramID<N>,
num_inputs: usize,
tvk: &Field<N>,
tcm: &Field<N>,
outputs: Vec<Value<N>>,
output_types: &[ValueType<N>],
output_registers: &[Register<N>]
) -> Result<Self>
pub fn new(
program_id: &ProgramID<N>,
num_inputs: usize,
tvk: &Field<N>,
tcm: &Field<N>,
outputs: Vec<Value<N>>,
output_types: &[ValueType<N>],
output_registers: &[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
sourceimpl<N: PartialEq + Network> PartialEq<Response<N>> for Response<N>
impl<N: PartialEq + Network> PartialEq<Response<N>> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.