2012-11-15 03:16:44 +00:00
|
|
|
pub trait Dimensional<T>: Index<uint, T> {
|
2012-11-25 12:05:47 +00:00
|
|
|
static pure fn dim() -> uint; // dim and size_of are pretty useless at the moment due to
|
|
|
|
static pure fn size_of() -> uint; // how Rust's static methods are currently implemented
|
2012-11-15 02:22:41 +00:00
|
|
|
pure fn to_ptr() -> *T;
|
|
|
|
}
|