M
Size: a a a
M
В
YB
IG
std::fmt::Display от ::std::fmt::Display?В
std::fmt::Display от ::std::fmt::Display?::std ищет всегда от корня. Т.е. локальный модуль не может перекрыть stdCt
std::fmt::Display от ::std::fmt::Display?JC
::std ищет всегда от корня. Т.е. локальный модуль не может перекрыть stdCt
mod std писать.В
В
std работает, но и с другими крейтами ;)В
$crateАК
error[E0382]: borrow of moved value: `order`
--> src\order_book\mod.rs:81:49
|
79 | fn match_market_order(&mut self, order: &mut MarketOrder) -> Result<Trades, Box<dyn Error>> {
| ----- move occurs because `order` has type `&mut order::MarketOrder`, which does not implement the `Copy` trait
80 | let matches = self.get_possible_matches(order);
| ----- value moved here
81 | assert!(matches.get_matched_amount() <= order.get_amount());
| ^^^^^ value borrowed here after move
АК
АК
t
А⚙
АК
АК
AN
AN