The Rust Feature Borrowing and Ownenship
Getting Started
- Learn the crate hello_exercism
- install cargo script
- install bat
Project
- name: hello-borrowing
- crate name: borrowing_exerci
- description: how to understand the rust borrowing
Subproject: bin-hello
- folder name: bin-hello
- description: the crate 'borrowing_exerci'
install the crate borrowing_exerci
Use the crate borrowing_exerci
help
List all commands with features for code
# example:
Run the code with a feature
- run a rust file with a feature
|
# example "closure_immut_string" with a feature "ok":
|
# tip: `f`, Forward one window
# tip: `b`, Backward one window
# tip: `q`, Exit.
# example "closure_immut_string" with a feature "err_01":
|
# tip: `f`, Forward one window
# tip: `b`, Backward one window
# tip: `q`, Exit.