项目文件夹

文件
2026-07-13 13:05:14 +08:00

16 行
676 B
Markdown

# re_span
Part of the [`rerun`](https://github.com/rerun-io/rerun) family of crates.
[![Latest version](https://img.shields.io/crates/v/re_span.svg)](https://crates.io/crates/re_span)
[![Documentation](https://docs.rs/re_span/badge.svg)](https://docs.rs/re_span)
![MIT](https://img.shields.io/badge/license-MIT-blue.svg)
![Apache](https://img.shields.io/badge/license-Apache-blue.svg)
An integer range that always has a non-negative length.
The standard `std::ops::Range` can have `start > end`.
Taking a `Range` by argument thus means the callee must check for this eventuality and return an error.
In contrast, `Span` always has a non-negative length, i.e. `len >= 0`.