1 2 3 4 5 6 7 8 9 10 11 12
//
#[macro_export]
macro_rules! impl_partial_eq_str_for_display {
($str:ty, $display:ty) => {
#[allow(unused_lifetimes)]
impl<'a> ::core::cmp::PartialEq<$str> for $display {
fn eq(&self, other: &$str) -> bool {
::core::cmp::PartialEq::eq(&$crate::alloc::format!("{}", self)[..], &other[..])
}
}
};
}