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

# Struct Ordering

Module: `std::cmp`

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

A value with three states: `Ordering::less()`, `Ordering::equal()` or `Ordering::greater()`. Most often used to encode the result of a comparison operation.

## Implementations

```rust
impl Ordering
```

```rust
pub fn less() -> Self
```

```rust
pub fn equal() -> Self
```

```rust
pub fn greater() -> Self
```

## Trait implementations

```rust
impl Eq for Ordering
```

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