pub fn new<D>(msg: D) -> Self
    where
        D: Display,
    {
        SerError::Msg(msg.to_string())
    }
/// Create a new error with the given message as description.
Create a new error with the given message as description.
Create a new error with the given message as description .
pub fn new<D>(msg: D) -> Self
    where
        D: Display,
    {
        SerError::Msg(msg.to_string())
    }
pub fn new < D > ( msg : D ) -> Self where D : Display , { SerError :: Msg ( msg . to_string ( ) ) }
Create a new error with the given message as description.
Create a new error with the given message as description .
msg
D
msg
D