borrowing_exerci 0.2.51

how to understand the borrowing in rust
Documentation

Minimum rustc version GitHub release The Crate mod_trait_exerci Code Build Status on appveyor.com GitHub issues Twitter URL

Getting Started

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'

download the crate borrowing_exerci codes

git clone https://github.com/cnruby/learn-rust-by-crates.git
cd learn-rust-by-crates/hello-borrowing/bin-hello/

Use the crate borrowing_exerci

  • run a rust file ex kw_fn.rs with borrowing error in the folder examples
cargo run --bin bw -- --file kw_fn --mode err | bat -l rs
# tip: `f`, Forward  one window
# tip: `b`, Backward  one window
# tip: `q`, Exit.
  • run a rust file ex kw_fn.rs without error in the folder examples
cargo run --bin bw -- -f kw_fn -m ok | bat -l rs

Resources