cgmath/src/dim.rs

5 lines
271 B
Rust
Raw Normal View History

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
pure fn to_ptr(&self) -> *T;
2012-11-15 02:22:41 +00:00
}