Create an extension trait for bool

This commit is contained in:
Brendan Zabarauskas 2012-11-20 12:57:56 +10:00
parent 211e9deee3
commit be6ee9a7f4

View file

@ -18,6 +18,11 @@ use num::default_eq::*;
pub trait TypeExt: TypeConsts, DefaultEq {}
pub trait BooleanExt: TypeExt {}
pub impl bool: BooleanExt {}
pub trait NumExt: Copy, TypeExt, Eq, Num, NumCast, Ord {}