On Sat, Mar 22, 2014 at 2:35 PM, Sean McArthur <[email protected]> wrote:
> How is it different from having the generic on the trait itself?

Because then a single object of type T:Encodable can be used with any
encoder, without needing to be instantiated for the type of encoder at
the buffer_encode call site.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to