Function ruma_common::serde::is_default

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

Check whether a value is equal to its default value.