defaulted 0.1.3

Trait and derive macro for testing whether a value equals its default state, with per-field customization and optional serde integration
Documentation
use crate::Defaulted;

impl<K, V> Defaulted for indexmap::IndexMap<K, V>
{
    #[inline]
    fn is_defaulted(&self) -> bool
    {
        self.is_empty()
    }
}

impl<T> Defaulted for indexmap::IndexSet<T>
{
    #[inline]
    fn is_defaulted(&self) -> bool
    {
        self.is_empty()
    }
}