[help] impl block for generic type overriden by specific type
[help] impl block for generic type overriden by specific type - Lemmy.world
I want to do basically this: rust struct MyStruct { data: T } impl for MyStruct { fn foo() { println!("Generic") } } impl for MyStruct { fn foo() { println!("u32") } } I have tried doing rust impl for MyStruct{ ... } But it doesn’t seem to work. I’ve also tried various things with traits but none of them seem to work. Is this even possible?