use subranges::FreeIntervals;
fn main() {
let free = (0..100).into();
let mut collection = FreeIntervals::new(free);
let first = collection.take_exact(32).unwrap();
println!("first: {first}");
let aligned = collection.take_exact_aligned(32, 10).unwrap();
println!("aligned: {aligned}");
let none = collection.take_exact(40);
assert!(none.is_none());
collection.insert(first);
let some = collection.take_exact(40).unwrap();
println!("some: {some}"); }