Enum snarkvm_circuit_program::Owner
source · pub enum Owner<A: Aleo, Private: Visibility<A>> {
Public(Address<A>),
Private(Private),
}
Expand description
A value stored in program data.
Variants
Public(Address<A>)
A publicly-visible value.
Private(Private)
A private value is encrypted under the account owner’s address.
Implementations
sourceimpl<A: Aleo, Private: Visibility<A>> Owner<A, Private>
impl<A: Aleo, Private: Visibility<A>> Owner<A, Private>
sourcepub fn is_private(&self) -> Boolean<A>
pub fn is_private(&self) -> Boolean<A>
Returns true
if self
is private.
Trait Implementations
sourceimpl<A: Aleo, Private: Visibility<A>> Equal<Owner<A, Private>> for Owner<A, Private>
impl<A: Aleo, Private: Visibility<A>> Equal<Owner<A, Private>> for Owner<A, Private>
sourceimpl<A: Aleo> Inject for Owner<A, Ciphertext<A>>
impl<A: Aleo> Inject for Owner<A, Ciphertext<A>>
type Primitive = Owner<<A as Environment>::Network, Ciphertext<<A as Environment>::Network>>
sourceimpl<A: Aleo> Inject for Owner<A, Plaintext<A>>
impl<A: Aleo> Inject for Owner<A, Plaintext<A>>
sourceimpl<A: Aleo> ToBits for Owner<A, Ciphertext<A>>
impl<A: Aleo> ToBits for Owner<A, Ciphertext<A>>
sourcefn to_bits_le(&self) -> Vec<Boolean<A>> ⓘ
fn to_bits_le(&self) -> Vec<Boolean<A>> ⓘ
Returns self
as a boolean vector in little-endian order.
sourcefn to_bits_be(&self) -> Vec<Boolean<A>> ⓘ
fn to_bits_be(&self) -> Vec<Boolean<A>> ⓘ
Returns self
as a boolean vector in big-endian order.
type Boolean = Boolean<A>
Auto Trait Implementations
impl<A, Private> RefUnwindSafe for Owner<A, Private>where
Private: RefUnwindSafe,
<A as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
impl<A, Private> !Send for Owner<A, Private>
impl<A, Private> !Sync for Owner<A, Private>
impl<A, Private> Unpin for Owner<A, Private>where
Private: Unpin,
<A as Environment>::BaseField: Unpin,
impl<A, Private> UnwindSafe for Owner<A, Private>where
Private: UnwindSafe,
<A as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more