pub struct Address<E>(_)
where
    E: Environment;

Trait Implementations§

source§

impl<E> Clone for Address<E>where E: Clone + Environment,

source§

fn clone(&self) -> Address<E>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

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

Returns true if self is less than other.

source§

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

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

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,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<E> Display for Address<E>where E: Environment,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<E> Eject for Address<E>where E: Environment,

source§

fn eject_mode(&self) -> Mode

Ejects the mode of the address.

source§

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)

Ejects the mode and primitive value of the circuit type.
source§

fn is_constant(&self) -> bool

Returns true if the circuit is a constant.
source§

fn is_public(&self) -> bool

Returns true if the circuit is a public.
source§

fn is_private(&self) -> bool

Returns true if the circuit is a private.
source§

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

Returns true if self and other are equal.

source§

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 Field<E>where E: Environment,

source§

fn from(value: &Address<E>) -> Field<E>

Returns the x-coordinate of the affine group element in the address.

source§

impl<E> From<&Address<E>> for Group<E>where E: Environment,

source§

fn from(value: &Address<E>) -> Group<E>

Returns the affine group element in the address.

source§

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>

Converts to this type from the input type.
source§

impl<E> From<&Field<E>> for Address<E>where E: Environment,

source§

fn from(value: &Field<E>) -> Address<E>

Initializes an address from the x-coordinate of an affine group element.

source§

impl<E> From<&Group<E>> for Address<E>where E: Environment,

source§

fn from(value: &Group<E>) -> Address<E>

Initializes an address from an affine group element.

source§

impl<E> From<Address<E>> for Field<E>where E: Environment,

source§

fn from(value: Address<E>) -> Field<E>

Returns the x-coordinate of the affine group element in the address.

source§

impl<E> From<Address<E>> for Group<E>where E: Environment,

source§

fn from(value: Address<E>) -> Group<E>

Returns the affine group element in the address.

source§

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>

Converts to this type from the input type.
source§

impl<E> From<Field<E>> for Address<E>where E: Environment,

source§

fn from(value: Field<E>) -> Address<E>

Initializes an address from the x-coordinate of an affine group element.

source§

impl<E> From<Group<E>> for Address<E>where E: Environment,

source§

fn from(value: Group<E>) -> Address<E>

Initializes an address from an affine group element.

source§

impl<E> FromBits for Address<E>where E: Environment,

source§

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>

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,

source§

fn from_field(x_coordinate: Field<E>) -> Address<E>

Initializes an address from the x-coordinate of an affine group element.

§

type Field = Field<E>

source§

impl<E> FromGroup for Address<E>where E: Environment,

source§

fn from_group(group: <Address<E> as FromGroup>::Group) -> Address<E>

Initializes an address from an affine group element.

§

type Group = Group<E>

§

type Scalar = Scalar<E>

source§

impl<E> FromStr for Address<E>where E: Environment,

source§

fn from_str(string: &str) -> Result<Address<E>, Error>

Parses a string into a address.

§

type Err = Error

The associated error which can be returned from parsing.
source§

impl<E> Inject for Address<E>where E: Environment,

source§

fn new(mode: Mode, address: <Address<E> as Inject>::Primitive) -> Address<E>

Initializes a new instance of an address.

§

type Primitive = Address<<E as Environment>::Network>

source§

fn constant(value: Self::Primitive) -> Selfwhere Self: Sized,

Initializes a constant of the given primitive value.
source§

impl<E> Metrics<dyn Ternary<Output = Address<E>, Boolean = Boolean<E>>> for Address<E>where E: Environment,

§

type Case = (Mode, Mode, Mode)

source§

fn count( case: &<Address<E> as Metrics<dyn Ternary<Output = Address<E>, Boolean = Boolean<E>>>>::Case ) -> Count

Returns the number of constants, public inputs, private inputs, and constraints.
source§

impl<E> OutputMode<dyn Ternary<Output = Address<E>, Boolean = Boolean<E>>> for Address<E>where E: Environment,

§

type Case = (CircuitType<Boolean<E>>, Mode, Mode)

source§

fn output_mode( parameter: &<Address<E> as OutputMode<dyn Ternary<Output = Address<E>, Boolean = Boolean<E>>>>::Case ) -> Mode

Returns the mode of the output.
source§

impl<E> Parser for Address<E>where E: Environment,

source§

fn parse(string: &str) -> Result<(&str, Address<E>), Err<VerboseError<&str>>>

Parses a string into an address circuit.

source§

impl<E> Ternary for Address<E>where E: Environment,

source§

fn ternary( condition: &<Address<E> as Ternary>::Boolean, first: &Address<E>, second: &Address<E> ) -> <Address<E> as Ternary>::Output

Returns first if condition is true, otherwise returns second.

§

type Boolean = Boolean<E>

§

type Output = Address<E>

source§

impl<E> ToBits for &Address<E>where E: Environment,

source§

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>

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,

source§

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>

Outputs the big-endian bit representation of self.x without leading zeros.

§

type Boolean = Boolean<E>

source§

impl<E> ToField for Address<E>where E: Environment,

source§

fn to_field(&self) -> Field<E>

Returns the x-coordinate of the affine group element in the address.

§

type Field = Field<E>

source§

impl<E> ToGroup for Address<E>where E: Environment,

source§

fn to_group(&self) -> <Address<E> as ToGroup>::Group

Returns the affine group element in the address.

§

type Group = Group<E>

§

type Scalar = Scalar<E>

source§

impl<E> TypeName for Address<E>where E: Environment,

source§

fn type_name() -> &'static str

Returns the type name of the circuit as a string.

source§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V