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

Method as_error

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

Source from the content-addressed store, hash-verified

469 /// Returns this `Report` as an [`Error`].
470 #[must_use]
471 pub fn as_error(&self) -> &(impl Error + Send + Sync + 'static)
472 where
473 C: 'static,
474 {
475 crate::error::ReportError::from_ref(self)
476 }
477}
478
479impl<C: ?Sized> Report<C> {

Callers 3

from_frameMethod · 0.45
provideMethod · 0.45
errorFunction · 0.45

Calls

no outgoing calls

Tested by 1

errorFunction · 0.36