pub fn new<S: ToString>(kind: ErrorKind, msg: &S) -> Self {
        Self {
            kind,
            msg: msg.to_string(),
        }
    }
/// Create a new error with the given message
Create a new error with the given message
Create a new error with the given message
pub fn new<S: ToString>(kind: ErrorKind, msg: &S) -> Self {
        Self {
            kind,
            msg: msg.to_string(),
        }
    }
pub fn new < S : ToString > ( kind : ErrorKind , msg : & S ) -> Self { Self { kind , msg : msg . to_string ( ) , } }
Create a new error with the given message
Create a new error with the given message
kind
ErrorKind
msg
&S
kind
ErrorKind
msg
&S