Replace the error classification (builder-style).
(mut self, kind: BlockErrorKind)
| 169 | |
| 170 | /// Replace the error classification (builder-style). |
| 171 | pub fn with_kind(mut self, kind: BlockErrorKind) -> Self { |
| 172 | self.kind = kind; |
| 173 | self |
| 174 | } |
| 175 | |
| 176 | /// Shorthand: attach an operation name. |
| 177 | pub fn with_op(mut self, op: ErrorOp) -> Self { |