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

Method downcast_ref

libs/error-stack/src/report.rs:702–704  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

700 /// ```
701 #[must_use]
702 pub fn downcast_ref<T: Send + Sync + 'static>(&self) -> Option<&T> {
703 self.frames().find_map(Frame::downcast_ref::<T>)
704 }
705
706 /// Searches the frame stack for an instance of type `T`, returning the most recent one found.
707 ///

Callers 3

current_contextMethod · 0.45
restore_snapshotMethod · 0.45
getMethod · 0.45

Calls 1

framesMethod · 0.80

Tested by

no test coverage detected