btree-range-map 0.7.2

B-tree range map implementation
Documentation
use std::ops::{Bound, RangeBounds};

/// Range with only an start bound, excluded.
pub struct RangeFromExcluded<T> {
	pub start: T,
}

impl<T> RangeFromExcluded<T> {
	pub const fn new(start: T) -> RangeFromExcluded<T> {
		RangeFromExcluded { start }
	}
}

impl<T> RangeBounds<T> for RangeFromExcluded<T> {
	fn start_bound(&self) -> Bound<&T> {
		Bound::Excluded(&self.start)
	}

	fn end_bound(&self) -> Bound<&T> {
		Bound::Unbounded
	}
}