rerun-io--rerun
16 行
676 B
Markdown
16 行
676 B
Markdown
# re_span
|
|
|
|
Part of the [`rerun`](https://github.com/rerun-io/rerun) family of crates.
|
|
|
|
[](https://crates.io/crates/re_span)
|
|
[](https://docs.rs/re_span)
|
|

|
|

|
|
|
|
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`.
|