pub fn new(input: Vec<WeeklyWindow>) -> Self {
        let intervals = input
            .into_iter()
            .map(|win| Element::from((win.range_weekly_minutes(), win)));

        Self {
            windows: intervals.collect(),
        }
    }
/// Create a calendar from a vector of weekly windows.
Create a calendar from a vector of weekly windows.
Create a calendar from a vector of weekly windows .
pub fn new(input: Vec<WeeklyWindow>) -> Self {
        let intervals = input
            .into_iter()
            .map(|win| Element::from((win.range_weekly_minutes(), win)));
        Self {
            windows: intervals.collect(),
        }
    }
pub fn new ( input : Vec < WeeklyWindow > ) -> Self { let intervals = input . into_iter ( ) . map ( | win | Element :: from ( ( win . range_weekly_minutes ( ) , win ) ) ) ; Self { windows : intervals . collect ( ) , } }
Create a calendar from a vector of weekly windows.
Create a calendar from a vector of weekly windows .
input
Vec<WeeklyWindow>