Function icu_normalizer::unwrap_or_gigo

source ยท
pub(crate) fn unwrap_or_gigo<T>(opt: Option<T>, default: T) -> T
Expand description

If opt is Some, unwrap it. If None, panic if debug assertions are enabled and return default if debug assertions are not enabled.

Use this only if the only reason why opt could be None is bogus data from the provider.