global: adding semester + making coarser intervals computed instead of eager

This commit is contained in:
nym21
2025-07-10 17:44:19 +02:00
parent a66f4ad4bd
commit c229e218f6
65 changed files with 2490 additions and 1003 deletions

View File

@@ -0,0 +1,12 @@
use std::ops::RangeInclusive;
pub trait FromCoarserIndex<T> {
fn min_from(coarser: T) -> usize;
fn max_from(coarser: T) -> usize;
fn inclusive_range_from(coarser: T) -> RangeInclusive<usize>
where
T: Clone,
{
Self::min_from(coarser.clone())..=Self::max_from(coarser)
}
}

View File

@@ -1,3 +1,5 @@
mod from_coarser;
mod printable;
pub use from_coarser::*;
pub use printable::*;