[][src]Crate lset

This crate contains types for measuring linear sets by either the end points (Line) or by a starting point and the number of elements (Span).

In the interest of zero-cost abstractions, all methods are always inlined for maximum compiler optimization. Thus, you only pay for the conversions that are actually used.

Structs

Line

Expresses a linear set by its starting and termination points

Span

Expresses a linear set by its start element and number of elements.

Traits

Contains

Determines whether a set contains an element

Empty

A trait for determining whether a set is empty

Split

Splits the set