These are chat archives for rust-lang/rust
rustcisn't gonna let you call a
&mut selfmethod on an object while you have
&mutreferences in scope..
&mut self, but each required variable, so they will be borrowed separately
triggered_order_peekis commented out
triggered_order_peekwas popped of first, resolved through the recursive call and then the function call would resume?
selfis highly unintuitive :-(
quantitative_relationso that's kinda the best I could come up with
buy: bool, but a proper enum
trade_to_resolve, the order I want to resolve, hits a limit order, it buys as much as possible from it and continues. If it's a stop order (haven't implemented the Ord traits for these yet), they get triggered, turn into a market order or limit order and consume the book by themselves. When they are dealt, the normal order continues. I am very much aware of the problem at this point and that's fully right of Rust to complain here
-Znll-dump-causeand it paniced :-)