Э
for idx in (0..vec.len()).rev() {
if foo(vec[idx]) {
vec.swap_remove(idx);
}
}Size: a a a
Э
for idx in (0..vec.len()).rev() {
if foo(vec[idx]) {
vec.swap_remove(idx);
}
}H
slab::retainЭ
slab::retainOption<T> в слабах.Э
None элементов.H
Э
retain вроде бы как раз для такого и сделан, нет?H
Э
&T меняешь?Э
&mut T retain выдаёт.Э
H
c.addr == packet.dst && checked_send(c, Message::Send(packet.clone()))r
r
H
Э
H
H
VK
Self: Base is not satisfiedN in bounds of Self
Ну да, теперь в DerivedDerived видны два типа N - от каждого из трейтов.