core: Derive Default for Wrapping<T>

This commit is contained in:
Cristi Cobzarenco 2015-10-07 21:31:36 +01:00
parent 3cee9e20f2
commit e8021808cb
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ use slice::SliceExt;
/// all standard arithmetic operations on the underlying value are
/// intended to have wrapping semantics.
#[stable(feature = "rust1", since = "1.0.0")]
#[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Debug)]
#[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Debug, Default)]
pub struct Wrapping<T>(#[stable(feature = "rust1", since = "1.0.0")] pub T);
pub mod wrapping;