Struct snarkvm_debug::prelude::Future
pub struct Future<N>where
N: Network,{ /* private fields */ }Expand description
A future.
Implementations§
§impl<N> Future<N>where
N: Network,
impl<N> Future<N>where
N: Network,
pub const fn new(
program_id: ProgramID<N>,
function_name: Identifier<N>,
arguments: Vec<Argument<N>>
) -> Future<N>
pub const fn new( program_id: ProgramID<N>, function_name: Identifier<N>, arguments: Vec<Argument<N>> ) -> Future<N>
Initializes a new future.
pub const fn program_id(&self) -> &ProgramID<N>
pub const fn program_id(&self) -> &ProgramID<N>
Returns the program ID.
pub const fn function_name(&self) -> &Identifier<N>
pub const fn function_name(&self) -> &Identifier<N>
Returns the name of the function.
Trait Implementations§
§impl<'de, N> Deserialize<'de> for Future<N>where
N: Network,
impl<'de, N> Deserialize<'de> for Future<N>where
N: Network,
§fn deserialize<D>(
deserializer: D
) -> Result<Future<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Future<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserializes the future from a string or bytes.
§impl<N> Serialize for Future<N>where
N: Network,
impl<N> Serialize for Future<N>where
N: Network,
§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serializes the future into a string or as bytes.
§impl<N> ToBits for Future<N>where
N: Network,
impl<N> ToBits for Future<N>where
N: Network,
§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
Returns the future as a list of little-endian bits.
§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
Returns the future as a list of big-endian bits.
source§fn to_bits_le(&self) -> Vec<bool>
fn to_bits_le(&self) -> Vec<bool>
Returns
self as a boolean array in little-endian order.source§fn to_bits_be(&self) -> Vec<bool>
fn to_bits_be(&self) -> Vec<bool>
Returns
self as a boolean array in big-endian order.impl<N> Eq for Future<N>where
N: Network,
Auto Trait Implementations§
impl<N> RefUnwindSafe for Future<N>where
N: RefUnwindSafe,
<N as Environment>::Field: RefUnwindSafe,
<N as Environment>::Projective: RefUnwindSafe,
<N as Environment>::Scalar: RefUnwindSafe,
impl<N> Send for Future<N>
impl<N> Sync for Future<N>
impl<N> Unpin for Future<N>where
N: Unpin,
<N as Environment>::Field: Unpin,
<N as Environment>::Projective: Unpin,
<N as Environment>::Scalar: Unpin,
impl<N> UnwindSafe for Future<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
source§impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
fn take_from_value<D>(
value: &mut Value,
field: &str
) -> Result<T, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
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.§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.