Registry / utility / ignore-result

ignore-result

JSON →
library0.2.0rscratesunverified

Adds an `ignore()` method to `Result` to discard errors without panicking.

# Cargo.toml [dependencies] ignore-result = "0.2.0"
INSTALL
IMPORT
SIG · IGNORE-RESULT
I
ignore-result
utilityrustv0.2.0
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.

IgnoreResult
use ignore_result::IgnoreResult;

Ignores a Result value safely.

use ignore_result::IgnoreResult; fn main() { let result: Result<i32, &str> = Ok(42); result.ignore(); // No panic on error }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
ignore-result — cargo add ignore-result · libregistry