View Source Comparable protocol (ash v3.4.23)

Protocol which describes ordering relation for pair of types

Summary

Functions

Accepts struct with fields :left and :right and returns ord value

Types

@type ord() :: :gt | :lt | :eq
@type t() :: t()

Functions

@spec compare(t()) :: ord()

Accepts struct with fields :left and :right and returns ord value