macro_rules! impl_eq_ord_hash_proxy {
($type:ty => $($access:tt)*) => { ... };
}Expand description
Implements PartialEq, Eq, PartialOrd, Ord, and Hash for a type by proxying the operations to a single field.
ⓘ
impl_eq_ord_hash_proxy!(MyType => .field);