I also wonder if one should have to explicitly import trait methods as well.
To make Niko's proposal clearer: here's how one would define the MyType:
mod foo {
mod bar {
struct MyType { ... }
impl MyType {
fn new() -> MyType {
MyType { ... }
}
}
}
}
Patrick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev
