minspan

Crates.iominspan
lib.rsminspan
version0.1.2
sourcesrc
created_at2021-09-03 06:34:31.163472
updated_at2024-07-29 02:41:25.13306
descriptiona package for determining the minimum span of one vector within another
homepage
repositoryhttps://github.com/mwotton/minspan
max_upload_size
id446337
size5,839
Mark Wotton (mwotton)

documentation

README

minspan

This is a tiny crate to find the minimal bounds of a string within another one. The needle must be found in its entirety within the haystack, but there may be any number of intervening characters that are just chaff. This is useful for applications like fuzzy-completers, where a shorter match is generally preferable ("curl" matches "curl https://rust-lang.org" better than it matches "colossally urban lapidarians").

The interface is small but under flux, it's possible that a slice is a better return value than bare integer indices.

Commit count: 0

cargo fmt