question for all you Rust people. does Rust have a way to use interfaces like Go? For example with Go I can do this:
package hello
type namer interface {
first() string
last() string
}
func name(n namer) string {
return n.first() + " " + n.last()
}
I think I saw on a blog post that Rust can only do this with some hacks, is that true?