Registry / Library

library · v0.1.1
Slot Conflict Count
Count half-open reservations overlapping a proposed half-open time slot. Ignore empty reservations.
Use Slot Conflict Count
use vendor::slot_conflict_count::slot_conflict_count;
Run the example
nest demo slot_conflict_count@0.1.1
blyxc native-run slot_conflict_count-demo/main.blyx
Example source and expected output
use vendor::slot_conflict_count::slot_conflict_count;
fn main() {
println!(slot_conflict_count([0,5,8],[5,7,9],5.0,8.0));
}
Expected output
1
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 53580216f7 | d3fc209afea6e9ad8958610bf730d6686faf0eca6652ab6408799e8e7f523616 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 59af84dd6a5a86483d2bb8266a46291a3810263d43f9f51bc10acd1a8e944a4c |