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.
| 31 | /// and serves to deduplicate internal logic that needs to work with |
| 32 | /// either of these types. |
| 33 | pub 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. |
nothing calls this directly
no outgoing calls
no test coverage detected