pub fn custom<M>(message: M) -> Self
    where
        M: Into<String>,
    {
        Error {
            inner: ErrorKind::Custom(message.into()),
        }
    }
/// Create a custom error from a message.
Create a custom error from a message.
Create a custom error from a message .
pub fn custom<M>(message: M) -> Self
    where
        M: Into<String>,
    {
        Error {
            inner: ErrorKind::Custom(message.into()),
        }
    }
pub fn custom < M > ( message : M ) -> Self where M : Into < String > , { Error { inner : ErrorKind :: Custom ( message . into ( ) ) , } }
Create a custom error from a message.
Create a custom error from a message .
message
M
message
M