Enum snarkvm_circuit_program::Access
source · pub enum Access<A: Aleo> {
Member(Identifier<A>),
Index(U32<A>),
}
Expand description
A helper type for accessing an entry in a register, struct, array, or record.
Variants§
Member(Identifier<A>)
Access a member of a register, struct, or record.
Index(U32<A>)
Access an element of an array.
Trait Implementations§
source§impl<A: Aleo> Eject for Access<A>
impl<A: Aleo> Eject for Access<A>
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the access.
source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the access.
type Primitive = Access<<A as Environment>::Network>
§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns
true
if the circuit is a constant.§fn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns
true
if the circuit is a private.source§impl<A: Aleo> Inject for Access<A>
impl<A: Aleo> Inject for Access<A>
impl<A: Aleo> Eq for Access<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for Access<A>where <A as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
impl<A> !Send for Access<A>
impl<A> !Sync for Access<A>
impl<A> Unpin for Access<A>where <A as Environment>::BaseField: Unpin,
impl<A> UnwindSafe for Access<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
§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
§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
Compare self to
key
and return true
if they are equal.