/// Returns a reference to a value in the current environment, as
/// [`Env::get`] does, but panics if the value has not been set in the
/// environment.
Returns a reference to a value in the current environment, as
[`Env::get`] does, but panics if the value has not been set in the
environment.
Returns a reference to a value in the current environment as [ ` Env :: get ` ] does but panics if the value has not been set in the environment .
pub fn expect<E>() -> impl Deref<Target = E> + 'static
    where
        E: Any + 'static,
    {
        if let Some(val) = Self::get() {
            val
        } else {
            panic!(
                "expected a `{}` from the environment, did not find it in current env: {:#?}",
                std::any::type_name::<E>(),
                Env::snapshot(),
            )
        }
    }
pub fn expect < E > ( ) -> impl Deref < Target = E > + ' static where E : Any + ' static , { if let Some ( val ) = Self :: get ( ) { val } else { panic ! ( " " std any type_name E ( ) Env snapshot ( ) ) } }
Returns a reference to a value in the current environment, as
[`Env::get`] does, but panics if the value has not been set in the
environment.
Returns a reference to a value in the current environment as [ ` Env :: get ` ] does but panics if the value has not been set in the environment .