mozilla/rust — pull request #10388 by bjz (2013-11-09 21:57:56+00:00)
Title: Add type hint struct

Adds a zero-sized type hint useful for accessing static methods that don't mention `Self`. For example:

~~~rust
trait A {
fn a(_: ForType) -> uint;
}

impl A for int {
fn a(_: ForType) -> uint { 6 }
}

assert_eq!(A::a(ForType::), 6);
~~~

Previously `Option` was usually used, but this makes the intent clearer.