(&self, fmt: &mut fmt::Formatter<'_>)
| 103 | |
| 104 | impl fmt::Debug for Frame { |
| 105 | fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 106 | let mut debug = fmt.debug_struct("Frame"); |
| 107 | |
| 108 | match self.kind() { |
| 109 | FrameKind::Context(context) => { |
| 110 | debug.field("context", &context); |
| 111 | debug.finish() |
| 112 | } |
| 113 | FrameKind::Attachment(AttachmentKind::Printable(attachment)) => { |
| 114 | debug.field("attachment", &attachment); |
| 115 | debug.finish() |
| 116 | } |
| 117 | FrameKind::Attachment(AttachmentKind::Opaque(_)) => debug.finish_non_exhaustive(), |
| 118 | } |
| 119 | } |
| 120 | } |