# Crate infinitable [−] [src]

Infinity for types without infinite values

Infinitable introduces the notion of "infinity" and "negative infinity" to numeric types, such as integers, that do not have infinite values.

A representation of infinity is useful for graph algorithms such as Dijkstra's algorithm, as well as for representing a graph with an adjacency matrix.

# Basic Usage

use infinitable::Infinitable; let finite = Infinitable::Finite(5); let infinity = Infinitable::Infinity; let negative_infinity = Infinitable::NegativeInfinity; assert!(finite < infinity); assert!(finite > negative_infinity);

## Enums

Infinitable |
An "infinitable" value, one that can be either finite or infinite |