Struct snarkvm_circuit::Address
pub struct Address<E>(_)
where
E: Environment;
Trait Implementations§
§impl<E> Clone for Address<E>where
E: Clone + Environment,
impl<E> Clone for Address<E>where E: Clone + Environment,
§impl<E> Compare<Address<E>> for Address<E>where
E: Environment,
impl<E> Compare<Address<E>> for Address<E>where E: Environment,
§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
.
§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
.
§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
.
§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>
§impl<E> Debug for Address<E>where
E: Environment,
impl<E> Debug for Address<E>where E: Environment,
§impl<E> Display for Address<E>where
E: Environment,
impl<E> Display for Address<E>where E: Environment,
§impl<E> Eject for Address<E>where
E: Environment,
impl<E> Eject for Address<E>where E: Environment,
§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the address.
§fn eject_value(&self) -> <Address<E> as Eject>::Primitive
fn eject_value(&self) -> <Address<E> as Eject>::Primitive
Ejects the address.
type Primitive = Address<<E 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.§impl<E> Equal<Address<E>> for Address<E>where
E: Environment,
impl<E> Equal<Address<E>> for Address<E>where E: Environment,
§impl<E> From<&Address<E>> for Field<E>where
E: Environment,
impl<E> From<&Address<E>> for Field<E>where E: Environment,
§impl<E> From<&Address<E>> for Group<E>where
E: Environment,
impl<E> From<&Address<E>> for Group<E>where E: Environment,
§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,
§fn from(
address: &Address<E>
) -> LinearCombination<<E as Environment>::BaseField>
fn from( address: &Address<E> ) -> LinearCombination<<E as Environment>::BaseField>
Converts to this type from the input type.
§impl<E> From<&Field<E>> for Address<E>where
E: Environment,
impl<E> From<&Field<E>> for Address<E>where E: Environment,
§impl<E> From<&Group<E>> for Address<E>where
E: Environment,
impl<E> From<&Group<E>> for Address<E>where E: Environment,
§impl<E> From<Address<E>> for Field<E>where
E: Environment,
impl<E> From<Address<E>> for Field<E>where E: Environment,
§impl<E> From<Address<E>> for Group<E>where
E: Environment,
impl<E> From<Address<E>> for Group<E>where E: Environment,
§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,
§fn from(address: Address<E>) -> LinearCombination<<E as Environment>::BaseField>
fn from(address: Address<E>) -> LinearCombination<<E as Environment>::BaseField>
Converts to this type from the input type.
§impl<E> From<Field<E>> for Address<E>where
E: Environment,
impl<E> From<Field<E>> for Address<E>where E: Environment,
§impl<E> From<Group<E>> for Address<E>where
E: Environment,
impl<E> From<Group<E>> for Address<E>where E: Environment,
§impl<E> FromBits for Address<E>where
E: Environment,
impl<E> FromBits for Address<E>where E: Environment,
§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.
§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>
§impl<E> FromField for Address<E>where
E: Environment,
impl<E> FromField for Address<E>where E: Environment,
§impl<E> FromGroup for Address<E>where
E: Environment,
impl<E> FromGroup for Address<E>where E: Environment,
§impl<E> FromStr for Address<E>where
E: Environment,
impl<E> FromStr for Address<E>where E: Environment,
§impl<E> Inject for Address<E>where
E: Environment,
impl<E> Inject for Address<E>where E: Environment,
§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,
§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,
type Case = (CircuitType<Boolean<E>>, Mode, Mode)
§fn output_mode(
parameter: &<Address<E> as OutputMode<dyn Ternary<Output = Address<E>, Boolean = Boolean<E>>>>::Case
) -> Mode
fn output_mode( parameter: &<Address<E> as OutputMode<dyn Ternary<Output = Address<E>, Boolean = Boolean<E>>>>::Case ) -> Mode
Returns the mode of the output.
§impl<E> Parser for Address<E>where
E: Environment,
impl<E> Parser for Address<E>where E: Environment,
§impl<E> Ternary for Address<E>where
E: Environment,
impl<E> Ternary for Address<E>where E: Environment,
§impl<E> ToBits for &Address<E>where
E: Environment,
impl<E> ToBits for &Address<E>where E: Environment,
§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.
§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>
§impl<E> ToBits for Address<E>where
E: Environment,
impl<E> ToBits for Address<E>where E: Environment,
§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.
§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>
§impl<E> ToField for Address<E>where
E: Environment,
impl<E> ToField for Address<E>where E: Environment,
§impl<E> ToGroup for Address<E>where
E: Environment,
impl<E> ToGroup for Address<E>where E: Environment,
§impl<E> TypeName for Address<E>where
E: Environment,
impl<E> TypeName for Address<E>where E: Environment,
impl<E> AddressTrait for Address<E>where E: Environment,
Auto Trait Implementations§
impl<E> RefUnwindSafe for Address<E>where <E as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
impl<E> !Send for Address<E>
impl<E> !Sync for Address<E>
impl<E> Unpin for Address<E>where <E as Environment>::BaseField: Unpin,
impl<E> UnwindSafe for Address<E>where <E 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