1
2
3
4
5
6

pub fn is_default<T> (v: &T) -> bool
where T: PartialEq + Default  {
    T::default().eq(v)
}