Skip to content

Commit 9abff54

Browse files
committed
Add Pod trait bound to std::num::Primitive
1 parent 2fa7d6b commit 9abff54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libstd/num/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
use clone::{Clone, DeepClone};
1919
use cmp::{Eq, Ord};
20+
use kinds::Pod;
2021
use mem::size_of;
2122
use ops::{Add, Sub, Mul, Div, Rem, Neg};
2223
use ops::{Not, BitAnd, BitOr, BitXor, Shl, Shr};
@@ -262,7 +263,8 @@ pub trait Bitwise: Bounded
262263
/// Specifies the available operations common to all of Rust's core numeric primitives.
263264
/// These may not always make sense from a purely mathematical point of view, but
264265
/// may be useful for systems programming.
265-
pub trait Primitive: Clone
266+
pub trait Primitive: Pod
267+
+ Clone
266268
+ DeepClone
267269
+ Num
268270
+ NumCast

0 commit comments

Comments
 (0)