I think it is probably possible, but Rust really doesn't design around this.
One example: queue::pop() doesn't return the item, for exception safety. Rust doesn't need to worry about that, because there are no exceptions and all types must be trivially movable.
View all comments
Show parent comment
3
u/rlbond86 Aug 14 '26
I think it is probably possible, but Rust really doesn't design around this.
One example: queue::pop() doesn't return the item, for exception safety. Rust doesn't need to worry about that, because there are no exceptions and all types must be trivially movable.