Wednesday, October 26, 2022

Rust pop-answer: split_asset

Again, implementing split_asset was easy, 


... but when it came to the `replace or remove` functionality of the HashSet of assets, poor Rust balked, so I had to use clone-semantics, refreshing the HashSet with a new instance. 

Here is split_asset in action. 



No comments:

Post a Comment