Can anyone explain why this closure capture is borrow mut?

⚓ Rust    📅 2025-05-01    👤 surdeus    👁️ 4      

surdeus

Warning

This post was published 112 days ago. The information described in this article may have changed.

image

why count is borrow mut?
count + 1 is an i32 type count is a borrow mut &i32 type , why &i32 = i32?

2 posts - 2 participants

Read full topic

🏷️ rust_feed