snarkvm_console_types_string

Trait Square

Source
pub trait Square {
    type Output;

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

Unary operator for retrieving the squared value.

Required Associated Types§

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

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

Source§

fn square(&self) -> <Scalar<E> as Square>::Output

Returns the square of self.

Source§

type Output = Scalar<E>

Implementors§

Source§

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

Source§

impl<E, I> Square for Integer<E, I>
where E: Environment, I: IntegerType,

Source§

type Output = Integer<E, I>