is_undefined

Function is_undefined 

Source
pub fn is_undefined<T>(value: &Option<T>) -> bool
Expand description

Utility to check if value is undefined.

§Arguments

  • value - The optional value.

§Returns

True if None.

§Examples

use gf_core::is_undefined;
assert!(is_undefined::<i32>(&None));
assert!(!is_undefined(&Some(42)));