Converts a `Report` with a single context into a `Report` with multiple contexts. This function allows for the transformation of a `Report ` into a `Report<[C]>`, enabling the report to potentially hold multiple current contexts of the same type. # Example ``` use error_stack::Report; #[derive(Debug)] struct SystemFailure; impl std::fmt::Display for SystemFailure { fn fmt(&self, f: &mut std
(self)
| 376 | /// assert_eq!(failures.current_frames().len(), 2); |
| 377 | /// ``` |
| 378 | pub fn expand(self) -> Report<[C]> { |
| 379 | Report { |
| 380 | frames: self.frames, |
| 381 | _context: PhantomData, |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | /// Returns the direct current frames of this report. |
| 386 | /// |
no outgoing calls