2012-09-19 18:52:32 -05:00
|
|
|
/*!
|
|
|
|
|
|
|
|
Functions for the unit type.
|
|
|
|
|
|
|
|
*/
|
2012-08-30 12:14:54 -05:00
|
|
|
|
2012-09-25 14:04:02 -05:00
|
|
|
// NB: transitionary, de-mode-ing.
|
|
|
|
#[forbid(deprecated_mode)];
|
|
|
|
#[forbid(deprecated_pattern)];
|
|
|
|
|
2012-08-30 12:14:54 -05:00
|
|
|
use cmp::{Eq, Ord};
|
|
|
|
|
2012-11-30 02:47:45 -06:00
|
|
|
#[cfg(notest)]
|
2012-09-19 20:00:26 -05:00
|
|
|
impl () : Eq {
|
2012-11-14 20:59:30 -06:00
|
|
|
pure fn eq(&self, _other: &()) -> bool { true }
|
|
|
|
pure fn ne(&self, _other: &()) -> bool { false }
|
2012-09-19 20:00:26 -05:00
|
|
|
}
|
2012-08-30 12:14:54 -05:00
|
|
|
|
2012-11-30 02:47:45 -06:00
|
|
|
#[cfg(notest)]
|
2012-09-19 20:00:26 -05:00
|
|
|
impl () : Ord {
|
2012-11-14 20:59:30 -06:00
|
|
|
pure fn lt(&self, _other: &()) -> bool { false }
|
|
|
|
pure fn le(&self, _other: &()) -> bool { true }
|
|
|
|
pure fn ge(&self, _other: &()) -> bool { true }
|
|
|
|
pure fn gt(&self, _other: &()) -> bool { false }
|
2012-09-19 20:00:26 -05:00
|
|
|
}
|
2012-08-30 12:14:54 -05:00
|
|
|
|