wrapp 0.1.3

Add additional functionality to Rust errors using a wrapper.
Documentation
use crate::Wrapp;

pub trait IntoWrapp<E>
where
    E: std::error::Error,
{
    fn into_wrapp(self) -> Wrapp<E>;
}

impl<E> IntoWrapp<E> for E
where
    E: std::error::Error + 'static,
{
    /// Convert the error into a `Wrapp`.
    /// If rust can infer the type, you should use the `Into::into` method instead.
    fn into_wrapp(self) -> Wrapp<E> {
        Wrapp::new(self)
    }
}

impl<E> From<E> for Wrapp<E>
where
    E: std::error::Error + 'static,
{
    fn from(value: E) -> Self {
        value.into_wrapp()
    }
}