pub fn msg<M>(span: Span, message: M) -> Self
    where
        M: fmt::Display + fmt::Debug + Send + Sync + 'static,
    {
        Self {
            span,
            inner: anyhow::Error::msg(message),
        }
    }
/// Construct a new error out of the given message.
Construct a new error out of the given message.
Construct a new error out of the given message .
pub fn msg<M>(span: Span, message: M) -> Self
    where
        M: fmt::Display + fmt::Debug + Send + Sync + 'static,
    {
        Self {
            span,
            inner: anyhow::Error::msg(message),
        }
    }
pub fn msg < M > ( span : Span , message : M ) -> Self where M : fmt :: Display + fmt :: Debug + Send + Sync + ' static , { Self { span , inner : anyhow :: Error :: msg ( message ) , } }
Construct a new error out of the given message.
Construct a new error out of the given message .
span
Span
message
M
span
Span
message
M