Primitive integers are always Displayable and Debuggable.

This commit is contained in:
Laurence Tratt 2018-02-17 17:16:54 +00:00
parent bfd62d4638
commit bad027b4cc
1 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,5 @@
use core::ops::{Not, BitAnd, BitOr, BitXor, Shl, Shr};
use std::fmt::{Debug, Display};
use {Num, NumCast};
use bounds::Bounded;
@ -8,6 +9,8 @@ use ops::saturating::Saturating;
pub trait PrimInt
: Sized
+ Copy
+ Display
+ Debug
+ Num + NumCast
+ Bounded
+ PartialOrd + Ord + Eq