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