File Size v3.0.1 FileSize.Comparable protocol View Source

A protocol that allows comparison of two file sizes.

Link to this section Summary

Functions

Compares two file sizes and returns an atom indicating whether the first value is less than, greater than or equal to the second one.

Link to this section Types

Link to this section Functions

Link to this function

compare(size, other_size) View Source
compare(t(), t()) :: :lt | :eq | :gt

Compares two file sizes and returns an atom indicating whether the first value is less than, greater than or equal to the second one.