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

# Module cmp

Module: `std::cmp`

## Structs

- [Ordering](/aztec-nr-api/v6.0.0/std/cmp/struct.Ordering.md): A value with three states: `Ordering::less()`, `Ordering::equal()` or `Ordering::greater()`. Most often used to encode the result of a comparison operation.

## Traits

- [Eq](/aztec-nr-api/v6.0.0/std/cmp/trait.Eq.md): Compare two values for equality
- [Ord](/aztec-nr-api/v6.0.0/std/cmp/trait.Ord.md): Compare one object to another, returning whether it is less-than, equal-to, or greater-than the other object.

## Functions

- [max](/aztec-nr-api/v6.0.0/std/cmp/fn.max.md): Compares and returns the maximum of two values.
- [min](/aztec-nr-api/v6.0.0/std/cmp/fn.min.md): Compares and returns the minimum of two values.
