| Crates.io | borrowing_exerci |
| lib.rs | borrowing_exerci |
| version | 0.4.51 |
| created_at | 2019-10-22 17:28:43.117528+00 |
| updated_at | 2019-12-04 12:18:41.053411+00 |
| description | how to understand the borrowing in rust |
| homepage | https://crates.io/crates/borrowing_exerci |
| repository | https://github.com/cnruby/learn-rust-by-crates/tree/master/hello-borrowing |
| max_upload_size | |
| id | 174715 |
| size | 300,126 |
cargo install cargo-script
cargo install bat
borrowing_exercicargo install borrowing_exerci
borrowing_exerci helpbw -h
bw -c <code>
# example:
bw -c closure_immut_string
bw -c <code> -f <feature> | bat -l rs
# example "closure_immut_string" with a feature "ok":
bw -c closure_immut_string -f ok | bat -l rs
# tip: `f`, Forward one window
# tip: `b`, Backward one window
# tip: `q`, Exit.
# example "closure_immut_string" with a feature "err_01":
bw -c closure_immut_string -f err_01 | bat -l rs
# tip: `f`, Forward one window
# tip: `b`, Backward one window
# tip: `q`, Exit.