core: Derive Default for Wrapping<T>
This commit is contained in:
parent
3cee9e20f2
commit
e8021808cb
|
@ -39,7 +39,7 @@ use slice::SliceExt;
|
||||||
/// all standard arithmetic operations on the underlying value are
|
/// all standard arithmetic operations on the underlying value are
|
||||||
/// intended to have wrapping semantics.
|
/// intended to have wrapping semantics.
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[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 struct Wrapping<T>(#[stable(feature = "rust1", since = "1.0.0")] pub T);
|
||||||
|
|
||||||
pub mod wrapping;
|
pub mod wrapping;
|
||||||
|
|
Loading…
Reference in New Issue