Is it possible to extend a default method implementation of a trait in a struct?
This isn’t possible directly now. However, RFC 1210: impl specialization contains various aspects that will make this sort of behaviour work, for example, something like this should work: trait Foo { fn method(&self) { println!(“default implementation”); } } trait Bar: Foo { … } partial impl<T: Bar> Foo for T { default fn method(&self) { … Read more