Struct snarkvm_circuit_program::HeaderLeaf
source · pub struct HeaderLeaf<A: Aleo> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<A: Clone + Aleo> Clone for HeaderLeaf<A>
impl<A: Clone + Aleo> Clone for HeaderLeaf<A>
source§fn clone(&self) -> HeaderLeaf<A>
fn clone(&self) -> HeaderLeaf<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: Aleo> Eject for HeaderLeaf<A>
impl<A: Aleo> Eject for HeaderLeaf<A>
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the header leaf.
source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the header leaf.
type Primitive = HeaderLeaf<<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: Aleo> Inject for HeaderLeaf<A>
impl<A: Aleo> Inject for HeaderLeaf<A>
source§impl<A: Aleo> ToBits for HeaderLeaf<A>
impl<A: Aleo> ToBits for HeaderLeaf<A>
source§fn write_bits_le(&self, vec: &mut Vec<Self::Boolean>)
fn write_bits_le(&self, vec: &mut Vec<Self::Boolean>)
Outputs the little-endian bit representation of self
without trailing zeros.
source§fn write_bits_be(&self, vec: &mut Vec<Self::Boolean>)
fn write_bits_be(&self, vec: &mut Vec<Self::Boolean>)
Outputs the big-endian bit representation of self
without leading zeros.
type Boolean = Boolean<A>
source§fn to_bits_le(&self) -> Vec<Self::Boolean>
fn to_bits_le(&self) -> Vec<Self::Boolean>
Returns the little-endian bits of the circuit.
source§fn to_bits_be(&self) -> Vec<Self::Boolean>
fn to_bits_be(&self) -> Vec<Self::Boolean>
Returns the big-endian bits of the circuit.
Auto Trait Implementations§
impl<A> !Freeze for HeaderLeaf<A>
impl<A> RefUnwindSafe for HeaderLeaf<A>
impl<A> !Send for HeaderLeaf<A>
impl<A> !Sync for HeaderLeaf<A>
impl<A> Unpin for HeaderLeaf<A>
impl<A> UnwindSafe for HeaderLeaf<A>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more