Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![feature(trait_alias)]
- use num_traits::NumAssign;
- use std::{cmp::Ordering, ops::Neg};
- trait Number = NumAssign + Ord + Copy + Clone + Neg<Output = Self>;
- #[derive(PartialEq, PartialOrd)]
- struct Wrap<N: Number>(N);
Add Comment
Please, Sign In to add comment