pub fn map_report<F>(self, op: F) -> Error<P>
        where F: FnOnce(diag::Report) -> diag::Report
    {
        Error {
            report: op(self.report),
            poison: self.poison,
        }
    }
/// Returns a new version with a changed report
Returns a new version with a changed report
Returns a new version with a changed report
pub fn map_report<F>(self, op: F) -> Error<P>
        where F: FnOnce(diag::Report) -> diag::Report
    {
        Error {
            report: op(self.report),
            poison: self.poison,
        }
    }
pub fn map_report < F > ( self , op : F ) -> Error < P > where F : FnOnce ( diag :: Report ) -> diag :: Report { Error { report : op ( self . report ) , poison : self . poison , } }
Returns a new version with a changed report
Returns a new version with a changed report
self
op
F
self
op
F