logoalt Hacker News

scuff3dtoday at 4:18 AM1 replyview on HN

You can provide default method implementations for traits. Any type with that trait gets the default behavior, unless you override it.


Replies

reactordevtoday at 12:59 PM

But that trait can’t have fields

show 1 reply