Function traffloat::is_default[][src]

pub fn is_default<T: PartialEq + Default>(value: &T) -> bool
Expand description

Checks if a value is different from the default of its type.

Used in serde fields: #[serde(skip_serializing_if = "crate::is_default")]