You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix/helix-core
Skyler Hawthorne 96cb28f4bf Add Selection::{overlaps,without} and fix contains
Adds two helper functions to `Selection`:

* `overlaps`: tests whether two `Selection`s contain any ranges which
  overlap with each other
* `without`: Computes a new `Selection` that is the set difference
  of two `Selection`s, i.e. everything in the first `Selection`
  with everything that overlaps in the second `Selection` removed,
  potentially leaving holes in the original ranges.

It also fixes a bug with `Selection::contains`: it assumes that if the
second `Selection` has a greater number of ranges than the first, then
the first cannot contain the second; but this is false, since one range
from the first could contain multiple smaller ranges in the second.
3 weeks ago
..
src Add Selection::{overlaps,without} and fix contains 3 weeks ago
tests Resolve new Clippy lints 7 months ago
.gitignore Initial import. 5 years ago
Cargo.toml build(deps): bump the rust-dependencies group with 5 updates (#11805) 2 months ago