Registry / utility / bisection

bisection

JSON →
library0.1.0rscratesunverified

Rust implementation of the Python bisect module for binary search and insertion.

# Cargo.toml [dependencies] bisection = "0.1.0"
INSTALL
IMPORT
SIG · BISECTION
B
bisection
utilityrustv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

bisect_left
✓ use bisection::bisect_left;

Finds the insertion point for a value in a sorted list using binary search.

use bisection::bisect_left; fn main() { let arr = vec![1, 3, 5, 7]; let index = bisect_left(&arr, &4); println!("Insert at index: {}", index); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
bisection — cargo add bisection · libregistry