pub trait ResultExt: Sealed + Sized {
// Required method
fn internal(self) -> Result<Self::Value>;
}Expand description
Extension methods on Result.
Required Methods§
Sourcefn internal(self) -> Result<Self::Value>
fn internal(self) -> Result<Self::Value>
Converts this result to an internal error.
Used when an unrecoverable error happens.
See internal_error for more information.
§Errors
Returns Err if self is Err.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".