use std::fmt::Debug;
use crate::Matcher;
pub fn empty() -> Empty {
Empty
}
pub struct Empty;
impl<T> Matcher<T> for Empty
where
T: PartialEq + Default + Debug,
{
fn matches(&self, value: &T) -> bool {
*value == T::default()
}
fn description(&self) -> String {
"empty".to_owned()
}
}