ExpectInternal

Trait ExpectInternal 

Source
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§

Source

fn expect_internal(self, msg: &str) -> HintedStrResult<T>

Extracts the value, producing an internal error if self is None.

Implementations on Foreign Types§

Source§

impl<T> ExpectInternal<T> for Option<T>

Implementors§