pub fn is_default<T>(val: &T) -> bool where T: Default + PartialEq<T>,
Check whether a value is equal to its default value.