Menu

1 / 8

Rust tip: when you see "borrow of moved value", ask who owns the value right now. A String has one owner at a time, like a single house key. Hand it over and you cannot use it yourself. Fix it with clone or a borrow. #rust #beginners

DEV Community: rust·mukherjeemahadev84-tech·13 days ago
#TFyVdfqL
#devtorust#devto#dev#rust#beginners
Reading 0:00
15s threshold

Rust tip: when you see "borrow of moved value", ask who owns the value right now. A String has one owner at a time, like a single house key. Hand it over and you cannot use it yourself. Fix it with clone or a borrow. #rust #beginners

Top comments (0)

Subscribe

We're a place where coders share, stay up-to-date and grow their careers.