I cant answer that , have asked on the rust list
These are usefull http://pcwalton.github.io/blog/2012/08/08/a-gentle-introduction-to-traits-in-rust/ On Thu, Jul 18, 2013 at 12:27 AM, Jonathan S. Shapiro <[email protected]>wrote: > Can somebody either explain the following questions about Rust, or point > me to a description, or (ideally) both? > > 1. I'm compiling the source code for some crate, and I need a trait > implementation. Over what scope is the instance resolution search performed? > > [Following assume that the answer is "over the crate being compiled"] > > 2. I'm compiling a library crate. A parameter of type T crosses the > interface boundary of this library, and the library does something that > requires an implementation of MyTrait<T>. How is the implementation of > MyTrait<T> obtained? > > _______________________________________________ > bitc-dev mailing list > [email protected] > http://www.coyotos.org/mailman/listinfo/bitc-dev > >
_______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
