Created
September 20, 2016 15:13
-
-
Save kindlychung/fa339cd89bde933e5961a9c7e96fc977 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Give the combination of these traits a name! | |
trait ZMod: Modulo<Output = Self> + Mul<Output = Self> + Sub<Output = Self> + Add<Output = Self> + Rem<Output = Self> + Copy {} | |
impl<T> ZMod for T | |
where T: Modulo<Output = T> + Mul<Output = T> + Sub<Output = T> + Add<Output = T> + Rem<Output = T> + Copy | |
{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment