[][src]Function optional::none

pub fn none<T: Noned + Copy>() -> Optioned<T>

Create a None Optioned<T>. Note that the type must be inferrible from the context, or you'd need to call with ::<T> where T is the specific type.

Examples

let x : Optioned<i16> = none();
none::<f32>();