Skip to main content

Module rangemap_ext

Module rangemap_ext 

Source
Expand description

Read-modify-write values for a contiguous range of keys, in a range map

Separate module mostly so that the tests have somewhere convenient to live.

Arguably this should be in another crate. But it brings in rangemap as a dependency which seems undesirable for tor-basic-utils. Right now it is here because this is where its (lowest in stack) call site will be.

Re-exportsยง

use std::ops::Bound; ๐Ÿ”’
use std::ops::RangeInclusive; ๐Ÿ”’
use itertools::Itertools; ๐Ÿ”’
use itertools::chain; ๐Ÿ”’
use itertools::chain; ๐Ÿ”’
use rangemap::RangeInclusiveMap; ๐Ÿ”’
use rangemap::StepFns; ๐Ÿ”’
use rangemap::StepLite; ๐Ÿ”’
use tor_basic_utils::rangebounds::RangeBoundsExt; ๐Ÿ”’

Functionsยง

rangemap_mutate_range
Read-modify-write values for a contiguous range of keys, in a range map