Function chrono::expect

source ·
pub(crate) const fn expect<T: Copy>(opt: Option<T>, msg: &str) -> T
Expand description

Workaround because .expect() is not (yet) available in const context.