Registry / utility / error-iter

error-iter

JSON →
library0.4.1rscratesunverified

Provides Error::sources on stable Rust for iterating over error chains.

# Cargo.toml [dependencies] error-iter = "0.4.1"
INSTALL
IMPORT
SIG · ERROR-ITER
E
error-iter
utilityrustv0.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ErrorIter
use error_iter::ErrorIter;

Iterates over error sources.

use error_iter::ErrorIter; use std::error::Error; fn main() { let error: Box<dyn Error> = Box::new(std::io::Error::new(std::io::ErrorKind::Other, "test")); for source in error.sources() { println!("{:?}", source); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
error-iter — cargo add error-iter · libregistry