pub struct Address<E: Environment>(/* private fields */);
Implementations§
Trait Implementations§
Source§impl<E: Environment> Compare for Address<E>
impl<E: Environment> Compare for Address<E>
Source§fn is_less_than(&self, other: &Self) -> Self::Output
fn is_less_than(&self, other: &Self) -> Self::Output
Returns true
if self
is less than other
.
Source§fn is_greater_than(&self, other: &Self) -> Self::Output
fn is_greater_than(&self, other: &Self) -> Self::Output
Returns true
if self
is greater than other
.
Source§fn is_less_than_or_equal(&self, other: &Self) -> Self::Output
fn is_less_than_or_equal(&self, other: &Self) -> Self::Output
Returns true
if self
is less than or equal to other
.
Source§fn is_greater_than_or_equal(&self, other: &Self) -> Self::Output
fn is_greater_than_or_equal(&self, other: &Self) -> Self::Output
Returns true
if self
is greater than or equal to other
.
type Output = Boolean<E>
Source§impl<E: Environment> Debug for Address<E>
impl<E: Environment> Debug for Address<E>
Source§impl<E: Environment> Display for Address<E>
impl<E: Environment> Display for Address<E>
Source§impl<E: Environment> Eject for Address<E>
impl<E: Environment> Eject for Address<E>
Source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the address.
Source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::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.Source§impl<E: Environment> Equal for Address<E>
impl<E: Environment> Equal for Address<E>
Source§impl<E: Environment> From<&Address<E>> for LinearCombination<E::BaseField>
impl<E: Environment> From<&Address<E>> for LinearCombination<E::BaseField>
Source§impl<E: Environment> From<Address<E>> for LinearCombination<E::BaseField>
impl<E: Environment> From<Address<E>> for LinearCombination<E::BaseField>
Source§impl<E: Environment> FromBits for Address<E>
impl<E: Environment> FromBits for Address<E>
Source§fn from_bits_le(bits_le: &[Self::Boolean]) -> Self
fn from_bits_le(bits_le: &[Self::Boolean]) -> Self
Initializes an address from a list of little-endian bits without trailing zeros.
Source§fn from_bits_be(bits_be: &[Self::Boolean]) -> Self
fn from_bits_be(bits_be: &[Self::Boolean]) -> Self
Initializes an address from a list of big-endian bits without leading zeros.
type Boolean = Boolean<E>
Source§impl<E: Environment> FromField for Address<E>
impl<E: Environment> FromField for Address<E>
Source§impl<E: Environment> FromGroup for Address<E>
impl<E: Environment> FromGroup for Address<E>
Source§impl<E: Environment> FromStr for Address<E>
impl<E: Environment> FromStr for Address<E>
Source§impl<E: Environment> Inject for Address<E>
impl<E: Environment> Inject for Address<E>
Source§impl<E: Environment> Metrics<dyn Ternary<Boolean = Boolean<E>, Output = Address<E>>> for Address<E>
impl<E: Environment> Metrics<dyn Ternary<Boolean = Boolean<E>, Output = Address<E>>> for Address<E>
Source§impl<E: Environment> OutputMode<dyn Ternary<Boolean = Boolean<E>, Output = Address<E>>> for Address<E>
impl<E: Environment> OutputMode<dyn Ternary<Boolean = Boolean<E>, Output = Address<E>>> for Address<E>
Source§impl<E: Environment> Parser for Address<E>
impl<E: Environment> Parser for Address<E>
Source§fn parse(string: &str) -> ParserResult<'_, Self>
fn parse(string: &str) -> ParserResult<'_, Self>
Parses a string into an address circuit.
Source§impl<E: Environment> Ternary for Address<E>
impl<E: Environment> Ternary for Address<E>
Source§impl<E: Environment> ToBits for &Address<E>
impl<E: Environment> ToBits for &Address<E>
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.x
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.x
without leading zeros.
type Boolean = Boolean<E>
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.
Source§impl<E: Environment> ToBits for Address<E>
impl<E: Environment> ToBits for Address<E>
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.x
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.x
without leading zeros.
type Boolean = Boolean<E>
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.
Source§impl<E: Environment> ToField for Address<E>
impl<E: Environment> ToField for Address<E>
Source§impl<E: Environment> ToGroup for Address<E>
impl<E: Environment> ToGroup for Address<E>
Source§impl<E: Environment> TypeName for Address<E>
impl<E: Environment> TypeName for Address<E>
impl<E: Environment> AddressTrait for Address<E>
Auto Trait Implementations§
impl<E> !Freeze for Address<E>
impl<E> RefUnwindSafe for Address<E>
impl<E> !Send for Address<E>
impl<E> !Sync for Address<E>
impl<E> Unpin for Address<E>
impl<E> UnwindSafe for Address<E>
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§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