From 0689f2b217237c356b61772f4e2532d07edc236a Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Fri, 2 Nov 2012 10:39:03 +1000 Subject: [PATCH] Add Todo comments --- src/common/math.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/common/math.rs b/src/common/math.rs index 4546da2..bc4449b 100644 --- a/src/common/math.rs +++ b/src/common/math.rs @@ -1,5 +1,5 @@ use cmp::Ord; -use num::{Num, from_int}; +use num::*; use ncast::*; @@ -12,6 +12,11 @@ pub trait ExactEq { pure fn exact_eq(other: &self) -> bool; } +/** + * TODO: This trait will be implemented for when generic trait + * support is improved. At the moment this would cause a conflict between the + * implementations in lmath::vector. + */ trait MinMax { pure fn min(other: &self) -> self; pure fn max(other: &self) -> self; @@ -85,7 +90,11 @@ impl float: MinMax { #[inline(always)] pure fn max(other: &float) -> float { if self > *other { self } else { *other } } } - +/** + * TODO: This trait will be implemented for when generic trait + * support is improved. At the moment this would cause a conflict between the + * implementations in lmath::vector. + */ trait Abs { pure fn abs() -> self; }