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

# Struct BinaryOp

Module: `std::meta::op`

```rust
pub struct BinaryOp
{ /* private fields */ }
```

## Implementations

```rust
impl BinaryOp
```

```rust
pub fn is_add(self) -> bool
```

```rust
pub fn is_subtract(self) -> bool
```

```rust
pub fn is_multiply(self) -> bool
```

```rust
pub fn is_divide(self) -> bool
```

```rust
pub fn is_equal(self) -> bool
```

```rust
pub fn is_not_equal(self) -> bool
```

```rust
pub fn is_less_than(self) -> bool
```

```rust
pub fn is_less_than_or_equal(self) -> bool
```

```rust
pub fn is_greater_than(self) -> bool
```

```rust
pub fn is_greater_than_or_equal(self) -> bool
```

```rust
pub fn is_and(self) -> bool
```

```rust
pub fn is_or(self) -> bool
```

```rust
pub fn is_xor(self) -> bool
```

```rust
pub fn is_shift_right(self) -> bool
```

```rust
pub fn is_shift_left(self) -> bool
```

```rust
pub fn is_modulo(self) -> bool
```

```rust
pub comptime fn quoted(self) -> Quoted
```

## Trait implementations

```rust
impl Eq for BinaryOp
```

```rust
pub fn eq(self, other: Self) -> bool
```

```rust
impl Hash for BinaryOp
```

```rust
pub fn hash<H>(self, h: &mut H)
where
    H: Hasher
```
