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

Method render

libs/error-stack/src/fmt/mod.rs:816–828  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

814 }
815
816 fn render(self) -> Option<Line> {
817 match self.0 {
818 0 => None,
819 1 => Some(Line::new().push(Instruction::Value {
820 value: "1 additional opaque attachment".to_owned(),
821 style: Style::new(),
822 })),
823 n => Some(Line::new().push(Instruction::Value {
824 value: format!("{n} additional opaque attachments"),
825 style: Style::new(),
826 })),
827 }
828 }
829}
830
831#[cfg_attr(

Callers 1

debug_attachmentsFunction · 0.45

Calls 2

pushMethod · 0.65
to_ownedMethod · 0.45

Tested by

no test coverage detected