pub trait ExpectInternal<T> {
// Required method
fn expect_internal(self, msg: &str) -> HintedStrResult<T>;
}Expand description
Adds a method analogous to Option::expect that raises an internal
compiler error instead of panicking.
Required Methods§
Sourcefn expect_internal(self, msg: &str) -> HintedStrResult<T>
fn expect_internal(self, msg: &str) -> HintedStrResult<T>
Extracts the value, producing an internal error if self is None.