Create an extension trait for bool
This commit is contained in:
parent
211e9deee3
commit
be6ee9a7f4
1 changed files with 5 additions and 0 deletions
|
@ -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 {}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue