pub trait Square {
    type Output;

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

Unary operator for retrieving the squared value.

Required Associated Types§

type Output

Required Methods§

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

Implementors§

§

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

§

type Output = Field<E>

§

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

§

type Output = Scalar<E>

§

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

§

type Output = Integer<E, I>