pub fn message<C>(kind: ErrorKind, message: C) -> Self
    where
        C: Into<Cow<'static, str>>,
    {
        Self {
            context: Context::Message {
                kind,
                message: message.into(),
            },
        }
    }
/// Create an `Error` based on an error kind and some sort of message
Create an `Error` based on an error kind and some sort of message
Create an ` Error ` based on an error kind and some sort of message
pub fn message<C>(kind: ErrorKind, message: C) -> Self
    where
        C: Into<Cow<'static, str>>,
    {
        Self {
            context: Context::Message {
                kind,
                message: message.into(),
            },
        }
    }
pub fn message < C > ( kind : ErrorKind , message : C ) -> Self where C : Into < Cow < ' static , str > > , { Self { context : Context :: Message { kind , message : message . into ( ) , } , } }
Create an `Error` based on an error kind and some sort of message
Create an ` Error ` based on an error kind and some sort of message
kind
ErrorKind
message
C