snarkvm_console_collections::environment::prelude

Trait AbsWrapped

Source
pub trait AbsWrapped {
    type Output;

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

Unary operator for retrieving the absolute value, wrapping the result if an overflow occurs.

Required Associated Types§

Required Methods§

Source

fn abs_wrapped(self) -> Self::Output

Implementors§

Source§

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

Source§

type Output = Integer<E, I>