Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Pod trait bound to std::num::Primitive
  • Loading branch information
brendanzab committed Feb 21, 2014
1 parent 2fa7d6b commit 9abff54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libstd/num/mod.rs
Expand Up @@ -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};
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9abff54

Please sign in to comment.