mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
core: Derive Default for Wrapping<T>
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
/// 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;
|
||||
|
||||
Reference in New Issue
Block a user