some_into

Function some_into 

Source
pub fn some_into<T>(a: Option<T>) -> T
where T: Debug,
Expand description

Asserts that the value is some and returns the value.

ยงExample

use common_testing::assert;

#[test]
fn test_1() {
 let result = Some("abc");
 let some = assert::some_into(result);
 assert::equal(some, "abc");
}