View Source Comparable protocol (ash v3.4.48)

Protocol which describes ordering relation for pair of types

Summary

Functions

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

Types

ord()

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

t()

@type t() :: t()

Functions

compare(left_and_right)

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

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