num: Derive Debug for Wrapping

This allows `Wrapping<T>` to be used in `assert_eq!`, for example.
This commit is contained in:
Ruud van Asseldonk 2015-03-27 10:16:13 +01:00
parent 53a183f027
commit 975ebc194c

View File

@ -67,7 +67,7 @@ macro_rules! wrapping_impl {
wrapping_impl! { uint u8 u16 u32 u64 int i8 i16 i32 i64 }
#[unstable(feature = "core", reason = "may be removed, renamed, or relocated")]
#[derive(PartialEq,Eq,PartialOrd,Ord,Clone,Copy)]
#[derive(PartialEq, Eq, PartialOrd, Ord, Debug, Clone, Copy)]
pub struct Wrapping<T>(pub T);
impl<T:WrappingOps> Add for Wrapping<T> {