Struct snarkvm_circuit::TransactionLeaf
source · pub struct TransactionLeaf<A>where
A: Aleo,{ /* private fields */ }
Implementations§
source§impl<A> TransactionLeaf<A>where
A: Aleo,
impl<A> TransactionLeaf<A>where A: Aleo,
Trait Implementations§
source§impl<A> Clone for TransactionLeaf<A>where
A: Clone + Aleo,
impl<A> Clone for TransactionLeaf<A>where A: Clone + Aleo,
source§fn clone(&self) -> TransactionLeaf<A>
fn clone(&self) -> TransactionLeaf<A>
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 moresource§impl<A> Eject for TransactionLeaf<A>where
A: Aleo,
impl<A> Eject for TransactionLeaf<A>where A: Aleo,
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the transaction leaf.
source§fn eject_value(&self) -> <TransactionLeaf<A> as Eject>::Primitive
fn eject_value(&self) -> <TransactionLeaf<A> as Eject>::Primitive
Ejects the transaction leaf.
type Primitive = TransactionLeaf<<A as Environment>::Network>
source§fn eject(&self) -> (Mode, Self::Primitive)
fn eject(&self) -> (Mode, Self::Primitive)
Ejects the mode and primitive value of the circuit type.
source§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns
true
if the circuit is a constant.source§fn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns
true
if the circuit is a private.source§impl<A> Inject for TransactionLeaf<A>where
A: Aleo,
impl<A> Inject for TransactionLeaf<A>where A: Aleo,
source§fn new(
mode: Mode,
transaction_leaf: <TransactionLeaf<A> as Inject>::Primitive
) -> TransactionLeaf<A>
fn new( mode: Mode, transaction_leaf: <TransactionLeaf<A> as Inject>::Primitive ) -> TransactionLeaf<A>
Initializes a new transaction leaf circuit from a primitive.
type Primitive = TransactionLeaf<<A as Environment>::Network>
source§impl<A> ToBits for TransactionLeaf<A>where
A: Aleo,
impl<A> ToBits for TransactionLeaf<A>where A: Aleo,
source§fn to_bits_le(&self) -> Vec<<TransactionLeaf<A> as ToBits>::Boolean, Global>
fn to_bits_le(&self) -> Vec<<TransactionLeaf<A> as ToBits>::Boolean, Global>
Outputs the little-endian bit representation of self
without trailing zeros.
source§fn to_bits_be(&self) -> Vec<<TransactionLeaf<A> as ToBits>::Boolean, Global>
fn to_bits_be(&self) -> Vec<<TransactionLeaf<A> as ToBits>::Boolean, Global>
Outputs the big-endian bit representation of self
without leading zeros.
type Boolean = Boolean<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for TransactionLeaf<A>where <A as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
impl<A> !Send for TransactionLeaf<A>
impl<A> !Sync for TransactionLeaf<A>
impl<A> Unpin for TransactionLeaf<A>where <A as Environment>::BaseField: Unpin,
impl<A> UnwindSafe for TransactionLeaf<A>where <A as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
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