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
1
2
3
4
5
6
7
8
9
10
use crate::Defaulted;

impl<A: smallvec::Array> Defaulted for smallvec::SmallVec<A>
{
    #[inline]
    fn is_defaulted(&self) -> bool
    {
        self.is_empty()
    }
}