Crate numerated

Source
Expand description

Crate for working with Numerated types and their sets: [Interval] and [IntervalsTree].

§Note

In case Numerated is implemented incorrectly for some type T, then this can cause incorrect behavior of [IntervalsTree] and [Interval] for T.

Re-exports§

pub use num_traits;

Modules§

interval
Interval implementations.
iterators
IntervalIterator, VoidsIterator, DifferenceIterator implementations.
tree
IntervalsTree implementation.

Structs§

OptionBound
Bound type for Option<T>.

Traits§

Bound
For any type T, Bound<T> is a type, which has set of values bigger than T by one.
Numerated
Numerated type is a type, which has type for distances between any two values of Self, and provide an interface to add/subtract distance to/from value.