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

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