cgmath/src/dim.rs
2012-12-01 14:55:45 +10:00

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;
}