defaulted 0.1.0

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 Defaulted for serde_yaml::Value
{
    #[inline]
    fn is_defaulted(&self) -> bool
    {
        self.is_null()
    }
}

impl Defaulted for serde_yaml::Mapping
{
    #[inline]
    fn is_defaulted(&self) -> bool
    {
        self.is_empty()
    }
}