Function some

Source
pub fn some<T: Noned + Copy>(value: T) -> Optioned<T>
Expand description

Create an Optioned<T> that is some(t).

§Panics

panics if the supplied value is the None value

§Examples

some(1i32); // Optioned(1i32)
some(std::f64::NAN); // panic!s