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

Function main

libs/error-stack/tests/ui/frames_mut_escape.rs:20–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18impl Error for RootError {}
19
20fn main() {
21 let mut report = Report::new(RootError).attach("attachment");
22
23 let mut escaped: Vec<&mut Frame> = Vec::new();
24 let _ = report.frames_mut(|frame| {
25 escaped.push(frame);
26 ControlFlow::Continue(())
27 });
28}

Callers

nothing calls this directly

Calls 3

frames_mutMethod · 0.80
pushMethod · 0.65
attachMethod · 0.45

Tested by

no test coverage detected