//! Operations on unique pointer types // NB: transitionary, de-mode-ing. #[forbid(deprecated_mode)]; #[forbid(deprecated_pattern)]; use cmp::{Eq, Ord}; impl ~const T : Eq { pure fn eq(other: &~const T) -> bool { *self == *(*other) } pure fn ne(other: &~const T) -> bool { *self != *(*other) } } impl ~const T : Ord { pure fn lt(other: &~const T) -> bool { *self < *(*other) } pure fn le(other: &~const T) -> bool { *self <= *(*other) } pure fn ge(other: &~const T) -> bool { *self >= *(*other) } pure fn gt(other: &~const T) -> bool { *self > *(*other) } }