Crate intervals

source ·
Expand description

Generalised types for intervals and partitions thereof.

intervals is oriented towards static-typing. The bounds are all unique types, all operations between instances are exhaustively implemented, and formatting is provided for ease-of-use.

Modules

  • Module containing bound types.
  • Module containing interval partition utilities.

Structs

  • Generalised type representing an interval between two points: a and b.

Traits

  • Marker trait for bounded intervals.
  • Trait for intervals which can assert containment of their values.

Type Definitions

  • Alias for a bounded closed interval.
  • Type alias to simplify intersection return types.
  • Alias for a left-closed, right-open interval.
  • Alias for a left-open, right-closed interval.
  • Alias for a left-closed interval, unbounded on the right.
  • Alias for a left-open interval, unbounded on the right.
  • Alias for a bounded open interval.
  • Alias for a right-closed interval, unbounded on the left.
  • Alias for a right-open interval, unbounded on the left.
  • Alias for an unbounded interval.
  • Type alias to simplify union-closure return types.