pub trait Double {
    type Output;

    // Required method
    fn double(&self) -> Self::Output;
}
Expand description

Unary operator for retrieving the doubled value.

Required Associated Types§

type Output

Required Methods§

fn double(&self) -> Self::Output

Trait Implementations§

§

impl<E> Metrics<dyn Double<Output = Field<E>>> for Field<E>where E: Environment,

§

type Case = Mode

§

fn count( _parameter: &<Field<E> as Metrics<dyn Double<Output = Field<E>>>>::Case ) -> Count

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

impl<E> OutputMode<dyn Double<Output = Field<E>>> for Field<E>where E: Environment,

§

type Case = Mode

§

fn output_mode( input: &<Field<E> as OutputMode<dyn Double<Output = Field<E>>>>::Case ) -> Mode

Returns the mode of the output.

Implementations on Foreign Types§

§

impl<E> Double for Field<E>where E: Environment,

§

fn double(&self) -> <Field<E> as Double>::Output

Returns the double of self.

§

type Output = Field<E>

§

impl<E> Double for Group<E>where E: Environment,

§

fn double(&self) -> <Group<E> as Double>::Output

Returns the double of self.

§

type Output = Group<E>

§

impl<E> Double for Scalar<E>where E: Environment,

§

fn double(&self) -> <Scalar<E> as Double>::Output

Returns the double of self.

§

type Output = Scalar<E>

Implementors§

§

impl<E> Double for snarkvm_circuit::Field<E>where E: Environment,

§

type Output = Field<E>

§

impl<E> Double for snarkvm_circuit::Group<E>where E: Environment,

§

type Output = Group<E>