Module casper_contract::unwrap_or_revert
source · Expand description
Home of UnwrapOrRevert
, a convenience trait for unwrapping values.
Traits
- A trait which provides syntactic sugar for unwrapping a type or calling
runtime::revert
if this fails. It is implemented forResult
andOption
.