MCPcopy Create free account
hub / github.com/Lintermute/lazy_errors / ErrorSource

Interface ErrorSource

lazy_errors/src/stash.rs:33–36  ·  view source on GitHub ↗

Something to read errors from. This trait is implemented by [`ErrorStash`] and [`StashWithErrors`] and serves to deduplicate internal logic that needs to work with either of these types.

Source from the content-addressed store, hash-verified

31/// and serves to deduplicate internal logic that needs to work with
32/// either of these types.
33pub trait ErrorSource<I> {
34 /// Returns all errors that have been added to this list so far.
35 fn errors(&self) -> &[I];
36}
37
38/// Something that is/wraps a mutable, empty or non-empty list of errors,
39/// and can be forced to contain at least one error.

Callers

nothing calls this directly

Implementers 1

stash.rslazy_errors/src/stash.rs

Calls

no outgoing calls

Tested by

no test coverage detected