MCPcopy Create free account
hub / github.com/hashintel/hash / fmt

Method fmt

libs/error-stack/src/frame/mod.rs:105–119  ·  view source on GitHub ↗
(&self, fmt: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

103
104impl 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}

Callers

nothing calls this directly

Calls 3

kindMethod · 0.45
fieldMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected