volo 0.12.3

Volo is a high-performance and strong-extensibility Rust RPC framework that helps developers build microservices.
Documentation
pub trait Unwrap<T> {
    fn volo_unwrap(self) -> T;
}

impl<T> Unwrap<T> for Option<T> {
    #[inline]
    fn volo_unwrap(self) -> T {
        #[cfg(not(feature = "unsafe_unchecked"))]
        return self.unwrap();

        #[cfg(feature = "unsafe_unchecked")]
        unsafe {
            self.unwrap_unchecked()
        }
    }
}

impl<T, E: std::fmt::Debug> Unwrap<T> for Result<T, E> {
    #[inline]
    fn volo_unwrap(self) -> T {
        #[cfg(not(feature = "unsafe_unchecked"))]
        return self.unwrap();

        #[cfg(feature = "unsafe_unchecked")]
        unsafe {
            self.unwrap_unchecked()
        }
    }
}