ruma::serde

Function is_default

Source
pub fn is_default<T>(val: &T) -> bool
where T: Default + PartialEq,
Expand description

Check whether a value is equal to its default value.