use std::ops::Range;
mod chunks;
mod clamped;
mod numbering;
pub mod py_style;
mod windows;
pub use chunks::{ChunkInt, Chunks};
pub use clamped::{ClampInt, Clamped};
pub use numbering::KeptEnds;
pub use py_style::PyStyleIdxRange;
pub use windows::{context_windows, merge_ranges};
pub trait RangeExt<T: ChunkInt> {
fn chunks(self, size: T) -> Chunks<T>;
}
impl<T: ChunkInt> RangeExt<T> for Range<T> {
fn chunks(self, size: T) -> Chunks<T> {
Chunks::new(self, size)
}
}