(mut self, attachment: A)
| 531 | /// ``` |
| 532 | #[track_caller] |
| 533 | pub fn attach<A>(mut self, attachment: A) -> Self |
| 534 | where |
| 535 | A: Attachment, |
| 536 | { |
| 537 | let old_frames = mem::replace(self.frames.as_mut(), Vec::with_capacity(1)); |
| 538 | self.frames.push(Frame::from_printable_attachment( |
| 539 | attachment, |
| 540 | old_frames.into_boxed_slice(), |
| 541 | )); |
| 542 | self |
| 543 | } |
| 544 | |
| 545 | /// Adds additional information to the [`Frame`] stack. |
| 546 | /// |