Twitter Feed: Post

Twitter Feed

@zkat__ ("kat.rs") wrote:

Dear Rust folks:

I want to define a trait with a method that is intended to return a type, any type, that conforms to a different trait, and have that be generic.

Is that possible? Is there a different pattern for this?

So I want a FooLikeFactory that constructs FooLikes