use core::cmp::Eq; pub trait Dimensional: Eq, Index { static pure fn dim() -> uint; pure fn to_ptr() -> *T; }