Skip to main content

assert_some

Function assert_some 

Source
pub fn assert_some<T>(opt: Option<T>, msg: &str) -> Result<T, String>
Expand description

Assert that an Option is Some and return the value