Nice blog. I think it is fair to say Rust’s DSTs are not completely finished yet, especially you cannot yet make your own Box using stable, which also means you cannot have a dyn MyTrait allocated from anywhere other than Global (using stable).
aside: that observation about DSTs is why I like noting that slices can be expressed as approximately type [T] = [T; dyn usize]. "Erased const generics" is I think the most fitting way to add custom DSTs to Rust.
Self suggestion, initially quoted by @dhm.
Probably too late for this issue, not sure what policy is for filing for the next (does it need to have been said after publication of the last TWiR?):
the amount of times that I spend 15 min in the docs + coding which end up in a monstrous
or().flatten().map().is_ok_and()only to get slapped by clippy sayingreplace your monster with this single function pleaseis way too high
Just because technology alone cannot solve all problems doesn't mean we shouldn't leverage technology to chip at it and decrease the burden on humans.
llogiq thanks himself for the suggestion!
By Ilogiq, on TWIR 646, thanking Ilogiq for his suggestion.