about summary refs log tree commit diff
path: root/src/libstd/num/num.rs
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2013-09-27 20:41:49 -0700
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2013-10-05 13:59:06 -0700
commit41f9deb2ee660cf45bc583171cc7c43a4b3ef4d5 (patch)
tree0f49892e12ab8a91e37612e4656ebe4cf994104d /src/libstd/num/num.rs
parent50fde8c024a30d01ed54a2d40eab7399bf1e7a3c (diff)
downloadrust-41f9deb2ee660cf45bc583171cc7c43a4b3ef4d5.tar.gz
rust-41f9deb2ee660cf45bc583171cc7c43a4b3ef4d5.zip
std: add Primitive.is_signed
Diffstat (limited to 'src/libstd/num/num.rs')
-rw-r--r--src/libstd/num/num.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/num/num.rs b/src/libstd/num/num.rs
index bccb20de458..fde1928f4a3 100644
--- a/src/libstd/num/num.rs
+++ b/src/libstd/num/num.rs
@@ -286,6 +286,7 @@ pub trait Primitive: Clone
     // FIXME (#8888): Removing `unused_self` requires #8888 to be fixed.
     fn bits(unused_self: Option<Self>) -> uint;
     fn bytes(unused_self: Option<Self>) -> uint;
+    fn is_signed(unused_self: Option<Self>) -> bool;
 }
 
 /// A collection of traits relevant to primitive signed and unsigned integers