Quantcast
Channel: User Schwern - Stack Overflow
Viewing all articles
Browse latest Browse all 581

Comment by Schwern on How to create a trait that requires Drop to be overridden?

$
0
0
You want to check if a trait has been implemented and that their implementation calls a particular method? Sounds fragile. I suppose you could add a new trait which promises they provide the specified Drop. Smells like an XY Problem. What problem are you solving with this?

Viewing all articles
Browse latest Browse all 581

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>