8 lines
295 B
Rust
8 lines
295 B
Rust
pub trait Dimensional<T>: Index<uint, T> {
|
|
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
|
|
}
|
|
|
|
pub trait ToPtr<T> {
|
|
pure fn to_ptr(&self) -> *T;
|
|
} |