Proposal: Add is_default() automatically to types that implement Default and PartialEq

probably the “right” API would be to add it to Default as

fn is_default(&self) -> bool where Self: PartialEq<Self>

No idea the breakage implications or whether or not its worthwhile.

5 Likes