Struct snarkvm_wasm::program::TransactionLeaf
pub struct TransactionLeaf<N>where
N: Network,{ /* private fields */ }Expand description
The Merkle leaf for a function or transition in the transaction.
Implementations§
§impl<N> TransactionLeaf<N>where
N: Network,
impl<N> TransactionLeaf<N>where
N: Network,
pub const fn new_deployment(index: u16, id: Field<N>) -> TransactionLeaf<N>
pub const fn new_deployment(index: u16, id: Field<N>) -> TransactionLeaf<N>
Initializes a new instance of TransactionLeaf.
pub const fn new_execution(index: u16, id: Field<N>) -> TransactionLeaf<N>
pub const fn new_execution(index: u16, id: Field<N>) -> TransactionLeaf<N>
Initializes a new instance of TransactionLeaf.
pub const fn from(variant: u8, index: u16, id: Field<N>) -> TransactionLeaf<N>
pub const fn from(variant: u8, index: u16, id: Field<N>) -> TransactionLeaf<N>
Initializes a new instance of TransactionLeaf.
Trait Implementations§
§impl<N> Clone for TransactionLeaf<N>where
N: Clone + Network,
impl<N> Clone for TransactionLeaf<N>where
N: Clone + Network,
§fn clone(&self) -> TransactionLeaf<N>
fn clone(&self) -> TransactionLeaf<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 more§impl<N> Debug for TransactionLeaf<N>where
N: Network,
impl<N> Debug for TransactionLeaf<N>where
N: Network,
§impl<'de, N> Deserialize<'de> for TransactionLeaf<N>where
N: Network,
impl<'de, N> Deserialize<'de> for TransactionLeaf<N>where
N: Network,
§fn deserialize<D>(
deserializer: D
) -> Result<TransactionLeaf<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<TransactionLeaf<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserializes the leaf from a string or bytes.
§impl<N> Display for TransactionLeaf<N>where
N: Network,
impl<N> Display for TransactionLeaf<N>where
N: Network,
§impl<N> FromBytes for TransactionLeaf<N>where
N: Network,
impl<N> FromBytes for TransactionLeaf<N>where
N: Network,
§impl<N> FromStr for TransactionLeaf<N>where
N: Network,
impl<N> FromStr for TransactionLeaf<N>where
N: Network,
§impl<N> PartialEq<TransactionLeaf<N>> for TransactionLeaf<N>where
N: PartialEq<N> + Network,
impl<N> PartialEq<TransactionLeaf<N>> for TransactionLeaf<N>where
N: PartialEq<N> + Network,
§fn eq(&self, other: &TransactionLeaf<N>) -> bool
fn eq(&self, other: &TransactionLeaf<N>) -> bool
§impl<N> Serialize for TransactionLeaf<N>where
N: Network,
impl<N> Serialize for TransactionLeaf<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 leaf into string or bytes.
§impl<N> ToBits for TransactionLeaf<N>where
N: Network,
impl<N> ToBits for TransactionLeaf<N>where
N: Network,
§impl<N> ToBytes for TransactionLeaf<N>where
N: Network,
impl<N> ToBytes for TransactionLeaf<N>where
N: Network,
impl<N> Copy for TransactionLeaf<N>where
N: Copy + Network,
impl<N> Eq for TransactionLeaf<N>where
N: Eq + Network,
impl<N> StructuralEq for TransactionLeaf<N>where
N: Network,
impl<N> StructuralPartialEq for TransactionLeaf<N>where
N: Network,
Auto Trait Implementations§
impl<N> RefUnwindSafe for TransactionLeaf<N>where
<N as Environment>::Field: RefUnwindSafe,
impl<N> Send for TransactionLeaf<N>
impl<N> Sync for TransactionLeaf<N>
impl<N> Unpin for TransactionLeaf<N>where
<N as Environment>::Field: Unpin,
impl<N> UnwindSafe for TransactionLeaf<N>where
<N as Environment>::Field: UnwindSafe,
Blanket Implementations§
source§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,
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 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