Module atomic

Module atomic 

Source
Expand description

A module containing the AtomicInterval struct and its implementations. An atomic interval is a closed or open interval that contains a single value or a range of values.

§Examples

use timekeep_rs::{AtomicInterval, Bound};
 
let interval = AtomicInterval::closed(1, 5);
assert_eq!(*interval.left(), Bound::Included(1));
assert_eq!(*interval.right(), Bound::Included(5));

Structs§

AtomicInterval
A struct representing an atomic interval. An atomic interval is a closed or open interval that contains a single value or a range of values.