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

Method current_contexts

libs/error-stack/src/report.rs:876–915  ·  view source on GitHub ↗

Returns an iterator over the current contexts of the `Report`. This method is similar to [`current_context`], but instead of returning a single context, it returns an iterator over all contexts in the `Report`. The order of the contexts should not be relied upon, as it is not guaranteed to be stable. ## Example ```rust # use std::{fs, path::Path}; # use error_stack::Report; use std::io; fn re

(&self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

add_singleFunction · 0.80
add_multipleFunction · 0.80
capture_singleFunction · 0.80
capture_multipleFunction · 0.80
try_singleFunction · 0.80
try_multipleFunction · 0.80
try_arbitrary_returnFunction · 0.80
finishFunction · 0.80
finish_withFunction · 0.80
finish_defaultFunction · 0.80
finish_with_valueFunction · 0.80

Calls 4

sourcesMethod · 0.80
popMethod · 0.65
pushMethod · 0.65
into_iterMethod · 0.45

Tested by 15

add_singleFunction · 0.64
add_multipleFunction · 0.64
capture_singleFunction · 0.64
capture_multipleFunction · 0.64
try_singleFunction · 0.64
try_multipleFunction · 0.64
try_arbitrary_returnFunction · 0.64
finishFunction · 0.64
finish_withFunction · 0.64
finish_defaultFunction · 0.64
finish_with_valueFunction · 0.64