pub fn is_default<T>(val: &T) -> bool
where
    T: Default + PartialEq,
{
    (*val) == Default::default()
}
/// Check if a value is the same as its default.
///
/// Useful for Serde's skip_serializing_if to suppress defaults being output.
Check if a value is the same as its default.
Useful for Serde's skip_serializing_if to suppress defaults being output.
Check if a value is the same as its default . Useful for Serde ' s skip_serializing_if to suppress defaults being output .
pub fn is_default<T>(val: &T) -> bool
where
    T: Default + PartialEq,
{
    (*val) == Default::default()
}
pub fn is_default < T > ( val : & T ) -> bool where T : Default + PartialEq , { ( * val ) == Default :: default ( ) }
Check if a value is the same as its default.
Check if a value is the same as its default .
val
&T