On Tue, Oct 23, 2012 at 3:20 PM, Lucian Branescu <[email protected]> wrote: > I think it's possible to implement methods on a struct directly, > without a trait in between.
This does not compile:
struct Foo {
x: i32,
y: i32,
fn bar() {
},
}
--
Henri Sivonen
[email protected]
http://hsivonen.iki.fi/
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev
