Expand description
§suwrap
Explicit, contextual replacement for unwrap().
suwrap provides a disciplined alternative to unwrap() and expect(),
making invariant failures explicit and consistently contextual.
§Why?
unwrap() panics without domain context.
use suwrap::Suwrap;
let value = Some(42).suwrap("value must exist");When failure indicates a broken invariant, suwrap makes that intent clear.
§Philosophy
Using unwrap() means:
“I don’t want to handle this.”
Using suwrap() means:
“This must not fail — and if it does, here is why.”
§License
Licensed under MIT OR Apache-2.0.
Re-exports§
pub use suwrap::Suwrap;