> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Struct UnaryOpExpression

Module: `std::meta::expr`

```rust
pub comptime struct UnaryOpExpression
{ /* private fields */ }
```

A unary operation decomposed by [`Expr::as_unary_op`](/aztec-nr-api/v6.0.0/std/primitive.Expr.md#as_unary_op).

## Implementations

```rust
impl UnaryOpExpression
```

```rust
pub comptime fn operator(self) -> UnaryOp
```

The unary operator.

```rust
pub comptime fn rhs(self) -> Expr
```

The operand on the right-hand side of the operator.
