Struct snarkvm_circuit_types::Address
source · pub struct Address<E>(_)
where
E: Environment;
Trait Implementations§
source§impl<E> Compare<Address<E>> for Address<E>where
E: Environment,
impl<E> Compare<Address<E>> for Address<E>where E: Environment,
source§fn is_less_than(
&self,
other: &Address<E>
) -> <Address<E> as Compare<Address<E>>>::Output
fn is_less_than( &self, other: &Address<E> ) -> <Address<E> as Compare<Address<E>>>::Output
Returns true
if self
is less than other
.
source§fn is_greater_than(
&self,
other: &Address<E>
) -> <Address<E> as Compare<Address<E>>>::Output
fn is_greater_than( &self, other: &Address<E> ) -> <Address<E> as Compare<Address<E>>>::Output
Returns true
if self
is greater than other
.
source§fn is_less_than_or_equal(
&self,
other: &Address<E>
) -> <Address<E> as Compare<Address<E>>>::Output
fn is_less_than_or_equal( &self, other: &Address<E> ) -> <Address<E> as Compare<Address<E>>>::Output
Returns true
if self
is less than or equal to other
.
source§fn is_greater_than_or_equal(
&self,
other: &Address<E>
) -> <Address<E> as Compare<Address<E>>>::Output
fn is_greater_than_or_equal( &self, other: &Address<E> ) -> <Address<E> as Compare<Address<E>>>::Output
Returns true
if self
is greater than or equal to other
.
type Output = Boolean<E>
source§impl<E> Debug for Address<E>where
E: Environment,
impl<E> Debug for Address<E>where E: Environment,
source§impl<E> Display for Address<E>where
E: Environment,
impl<E> Display for Address<E>where E: Environment,
source§impl<E> Eject for Address<E>where
E: Environment,
impl<E> Eject for Address<E>where E: Environment,
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the address.
type Primitive = Address<<E as Environment>::Network>
source§fn eject(&self) -> (Mode, Self::Primitive)
fn eject(&self) -> (Mode, Self::Primitive)
source§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
true
if the circuit is a constant.source§fn is_private(&self) -> bool
fn is_private(&self) -> bool
true
if the circuit is a private.source§impl<E> Equal<Address<E>> for Address<E>where
E: Environment,
impl<E> Equal<Address<E>> for Address<E>where E: Environment,
source§fn is_equal(
&self,
other: &Address<E>
) -> <Address<E> as Equal<Address<E>>>::Output
fn is_equal( &self, other: &Address<E> ) -> <Address<E> as Equal<Address<E>>>::Output
Returns true
if self
and other
are equal.
source§fn is_not_equal(
&self,
other: &Address<E>
) -> <Address<E> as Equal<Address<E>>>::Output
fn is_not_equal( &self, other: &Address<E> ) -> <Address<E> as Equal<Address<E>>>::Output
Returns true
if self
and other
are not equal.
type Output = Boolean<E>
source§impl<E> From<&Address<E>> for LinearCombination<<E as Environment>::BaseField>where
E: Environment,
impl<E> From<&Address<E>> for LinearCombination<<E as Environment>::BaseField>where E: Environment,
source§fn from(
address: &Address<E>
) -> LinearCombination<<E as Environment>::BaseField>
fn from( address: &Address<E> ) -> LinearCombination<<E as Environment>::BaseField>
source§impl<E> From<Address<E>> for LinearCombination<<E as Environment>::BaseField>where
E: Environment,
impl<E> From<Address<E>> for LinearCombination<<E as Environment>::BaseField>where E: Environment,
source§fn from(address: Address<E>) -> LinearCombination<<E as Environment>::BaseField>
fn from(address: Address<E>) -> LinearCombination<<E as Environment>::BaseField>
source§impl<E> FromBits for Address<E>where
E: Environment,
impl<E> FromBits for Address<E>where E: Environment,
source§fn from_bits_le(bits_le: &[<Address<E> as FromBits>::Boolean]) -> Address<E>
fn from_bits_le(bits_le: &[<Address<E> as FromBits>::Boolean]) -> Address<E>
Initializes an address from a list of little-endian bits without trailing zeros.
source§fn from_bits_be(bits_be: &[<Address<E> as FromBits>::Boolean]) -> Address<E>
fn from_bits_be(bits_be: &[<Address<E> as FromBits>::Boolean]) -> Address<E>
Initializes an address from a list of big-endian bits without leading zeros.
type Boolean = Boolean<E>
source§impl<E> FromField for Address<E>where
E: Environment,
impl<E> FromField for Address<E>where E: Environment,
source§impl<E> FromGroup for Address<E>where
E: Environment,
impl<E> FromGroup for Address<E>where E: Environment,
source§impl<E> FromStr for Address<E>where
E: Environment,
impl<E> FromStr for Address<E>where E: Environment,
source§impl<E> Inject for Address<E>where
E: Environment,
impl<E> Inject for Address<E>where E: Environment,
source§impl<E> Metrics<dyn Ternary<Output = Address<E>, Boolean = Boolean<E>>> for Address<E>where
E: Environment,
impl<E> Metrics<dyn Ternary<Output = Address<E>, Boolean = Boolean<E>>> for Address<E>where E: Environment,
source§impl<E> OutputMode<dyn Ternary<Output = Address<E>, Boolean = Boolean<E>>> for Address<E>where
E: Environment,
impl<E> OutputMode<dyn Ternary<Output = Address<E>, Boolean = Boolean<E>>> for Address<E>where E: Environment,
source§impl<E> Parser for Address<E>where
E: Environment,
impl<E> Parser for Address<E>where E: Environment,
source§impl<E> Ternary for Address<E>where
E: Environment,
impl<E> Ternary for Address<E>where E: Environment,
source§impl<E> ToBits for &Address<E>where
E: Environment,
impl<E> ToBits for &Address<E>where E: Environment,
source§fn to_bits_le(&self) -> Vec<<&Address<E> as ToBits>::Boolean, Global>
fn to_bits_le(&self) -> Vec<<&Address<E> as ToBits>::Boolean, Global>
Outputs the little-endian bit representation of self.x
without trailing zeros.
source§fn to_bits_be(&self) -> Vec<<&Address<E> as ToBits>::Boolean, Global>
fn to_bits_be(&self) -> Vec<<&Address<E> as ToBits>::Boolean, Global>
Outputs the big-endian bit representation of self.x
without leading zeros.
type Boolean = Boolean<E>
source§impl<E> ToBits for Address<E>where
E: Environment,
impl<E> ToBits for Address<E>where E: Environment,
source§fn to_bits_le(&self) -> Vec<<Address<E> as ToBits>::Boolean, Global>
fn to_bits_le(&self) -> Vec<<Address<E> as ToBits>::Boolean, Global>
Outputs the little-endian bit representation of self.x
without trailing zeros.
source§fn to_bits_be(&self) -> Vec<<Address<E> as ToBits>::Boolean, Global>
fn to_bits_be(&self) -> Vec<<Address<E> as ToBits>::Boolean, Global>
Outputs the big-endian bit representation of self.x
without leading zeros.