diff options
| author | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2014-02-22 03:51:56 +1100 |
|---|---|---|
| committer | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2014-02-22 03:51:56 +1100 |
| commit | 9abff54d61babab8050c108f7cb6b957b1636337 (patch) | |
| tree | f42c5a7c0fa4f8774aba84b9aa39ea8f89defb3e /src/libstd | |
| parent | 2fa7d6b44fcc329e849f4dd43e11c6fdd43ebd76 (diff) | |
| download | rust-9abff54d61babab8050c108f7cb6b957b1636337.tar.gz rust-9abff54d61babab8050c108f7cb6b957b1636337.zip | |
Add Pod trait bound to std::num::Primitive
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/num/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/num/mod.rs b/src/libstd/num/mod.rs index 8a417096c3e..767faa30f24 100644 --- a/src/libstd/num/mod.rs +++ b/src/libstd/num/mod.rs @@ -17,6 +17,7 @@ use clone::{Clone, DeepClone}; use cmp::{Eq, Ord}; +use kinds::Pod; use mem::size_of; use ops::{Add, Sub, Mul, Div, Rem, Neg}; use ops::{Not, BitAnd, BitOr, BitXor, Shl, Shr}; @@ -262,7 +263,8 @@ pub trait Bitwise: Bounded /// Specifies the available operations common to all of Rust's core numeric primitives. /// These may not always make sense from a purely mathematical point of view, but /// may be useful for systems programming. -pub trait Primitive: Clone +pub trait Primitive: Pod + + Clone + DeepClone + Num + NumCast |
