2012-09-19 18:52:32 -05:00
|
|
|
/*!
|
|
|
|
|
|
|
|
Functions for the unit type.
|
|
|
|
|
|
|
|
*/
|
2012-08-30 12:14:54 -05:00
|
|
|
|
|
|
|
use cmp::{Eq, Ord};
|
|
|
|
|
2012-09-19 20:00:26 -05:00
|
|
|
impl () : Eq {
|
|
|
|
pure fn eq(_other: &()) -> bool { true }
|
|
|
|
pure fn ne(_other: &()) -> bool { false }
|
|
|
|
}
|
2012-08-30 12:14:54 -05:00
|
|
|
|
2012-09-19 20:00:26 -05:00
|
|
|
impl () : Ord {
|
|
|
|
pure fn lt(_other: &()) -> bool { false }
|
|
|
|
pure fn le(_other: &()) -> bool { true }
|
|
|
|
pure fn ge(_other: &()) -> bool { true }
|
|
|
|
pure fn gt(_other: &()) -> bool { false }
|
|
|
|
}
|
2012-08-30 12:14:54 -05:00
|
|
|
|