jiff 0.2.23

A date-time library that encourages you to jump into the pit of success. This library is heavily inspired by the Temporal project.
Documentation
/// Unwrap an `Option<T>` in a `const` context.
///
/// If it fails, panics with the given message.
macro_rules! unwrap {
    ($val:expr, $msg:expr$(,)?) => {
        match $val {
            Some(val) => val,
            None => panic!($msg),
        }
    };
}

/// Unwrap a `Result<T, E>` in a `const` context.
///
/// If it fails, panics with the given message.
macro_rules! unwrapr {
    ($val:expr, $msg:expr$(,)?) => {
        match $val {
            Ok(val) => val,
            Err(_) => panic!($msg),
        }
    };
}

pub(crate) use {unwrap, unwrapr};