├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── lain-lain.md ├── pull_request_template.md └── workflows │ └── build.yml ├── .gitignore ├── .mergify ├── CONTRIBUTING.md ├── Cargo.toml ├── LICENSE ├── README.md ├── algorithms ├── Cargo.toml └── src │ ├── lib.rs │ └── sorting │ ├── bead_sort.rs │ ├── bogo_sort.rs │ └── mod.rs ├── basics ├── 01_introduction │ ├── Cargo.toml │ ├── README.md │ └── src │ │ └── lib.rs ├── 02_variables │ ├── Cargo.toml │ ├── README.md │ └── src │ │ └── lib.rs ├── 03_functions │ ├── Cargo.toml │ ├── README.md │ └── src │ │ └── lib.rs ├── 04_ownership │ ├── Cargo.toml │ ├── README.md │ └── src │ │ └── lib.rs ├── 05_enumeration_dan_pattern_matching │ ├── Cargo.toml │ ├── README.md │ └── src │ │ ├── example.rs │ │ └── lib.rs ├── 06_result_dan_option_type │ ├── Cargo.toml │ ├── README.md │ └── src │ │ ├── example.rs │ │ └── lib.rs ├── 07_conditional │ ├── Cargo.toml │ ├── README.md │ └── src │ │ └── lib.rs ├── 08_loop │ ├── Cargo.toml │ ├── README.md │ └── src │ │ └── lib.rs ├── 09_struct_dan_implementation │ ├── Cargo.toml │ ├── README.md │ └── src │ │ └── lib.rs └── 10_trait │ ├── Cargo.toml │ ├── README.md │ └── src │ └── lib.rs ├── extras └── smart_pointers │ ├── 01_box.md │ ├── 02_deref_trait.md │ ├── 03_drop_trait.md │ ├── Cargo.toml │ └── src │ └── lib.rs ├── git_hooks └── pre-commit └── intermediate ├── 01_generics ├── Cargo.toml ├── README.md └── src │ └── lib.rs └── 02_lifetime ├── Cargo.toml ├── README.md └── src └── lib.rs /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/lain-lain.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/.github/ISSUE_TEMPLATE/lain-lain.md -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/.gitignore -------------------------------------------------------------------------------- /.mergify: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/.mergify -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/README.md -------------------------------------------------------------------------------- /algorithms/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/algorithms/Cargo.toml -------------------------------------------------------------------------------- /algorithms/src/lib.rs: -------------------------------------------------------------------------------- 1 | pub mod sorting; 2 | -------------------------------------------------------------------------------- /algorithms/src/sorting/bead_sort.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/algorithms/src/sorting/bead_sort.rs -------------------------------------------------------------------------------- /algorithms/src/sorting/bogo_sort.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/algorithms/src/sorting/bogo_sort.rs -------------------------------------------------------------------------------- /algorithms/src/sorting/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/algorithms/src/sorting/mod.rs -------------------------------------------------------------------------------- /basics/01_introduction/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/01_introduction/Cargo.toml -------------------------------------------------------------------------------- /basics/01_introduction/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/01_introduction/README.md -------------------------------------------------------------------------------- /basics/01_introduction/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/01_introduction/src/lib.rs -------------------------------------------------------------------------------- /basics/02_variables/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/02_variables/Cargo.toml -------------------------------------------------------------------------------- /basics/02_variables/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/02_variables/README.md -------------------------------------------------------------------------------- /basics/02_variables/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/02_variables/src/lib.rs -------------------------------------------------------------------------------- /basics/03_functions/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/03_functions/Cargo.toml -------------------------------------------------------------------------------- /basics/03_functions/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/03_functions/README.md -------------------------------------------------------------------------------- /basics/03_functions/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/03_functions/src/lib.rs -------------------------------------------------------------------------------- /basics/04_ownership/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/04_ownership/Cargo.toml -------------------------------------------------------------------------------- /basics/04_ownership/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/04_ownership/README.md -------------------------------------------------------------------------------- /basics/04_ownership/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/04_ownership/src/lib.rs -------------------------------------------------------------------------------- /basics/05_enumeration_dan_pattern_matching/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/05_enumeration_dan_pattern_matching/Cargo.toml -------------------------------------------------------------------------------- /basics/05_enumeration_dan_pattern_matching/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/05_enumeration_dan_pattern_matching/README.md -------------------------------------------------------------------------------- /basics/05_enumeration_dan_pattern_matching/src/example.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/05_enumeration_dan_pattern_matching/src/example.rs -------------------------------------------------------------------------------- /basics/05_enumeration_dan_pattern_matching/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/05_enumeration_dan_pattern_matching/src/lib.rs -------------------------------------------------------------------------------- /basics/06_result_dan_option_type/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/06_result_dan_option_type/Cargo.toml -------------------------------------------------------------------------------- /basics/06_result_dan_option_type/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/06_result_dan_option_type/README.md -------------------------------------------------------------------------------- /basics/06_result_dan_option_type/src/example.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/06_result_dan_option_type/src/example.rs -------------------------------------------------------------------------------- /basics/06_result_dan_option_type/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/06_result_dan_option_type/src/lib.rs -------------------------------------------------------------------------------- /basics/07_conditional/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/07_conditional/Cargo.toml -------------------------------------------------------------------------------- /basics/07_conditional/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/07_conditional/README.md -------------------------------------------------------------------------------- /basics/07_conditional/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/07_conditional/src/lib.rs -------------------------------------------------------------------------------- /basics/08_loop/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/08_loop/Cargo.toml -------------------------------------------------------------------------------- /basics/08_loop/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/08_loop/README.md -------------------------------------------------------------------------------- /basics/08_loop/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/08_loop/src/lib.rs -------------------------------------------------------------------------------- /basics/09_struct_dan_implementation/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/09_struct_dan_implementation/Cargo.toml -------------------------------------------------------------------------------- /basics/09_struct_dan_implementation/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/09_struct_dan_implementation/README.md -------------------------------------------------------------------------------- /basics/09_struct_dan_implementation/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/09_struct_dan_implementation/src/lib.rs -------------------------------------------------------------------------------- /basics/10_trait/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/10_trait/Cargo.toml -------------------------------------------------------------------------------- /basics/10_trait/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/10_trait/README.md -------------------------------------------------------------------------------- /basics/10_trait/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/basics/10_trait/src/lib.rs -------------------------------------------------------------------------------- /extras/smart_pointers/01_box.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/extras/smart_pointers/01_box.md -------------------------------------------------------------------------------- /extras/smart_pointers/02_deref_trait.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/extras/smart_pointers/02_deref_trait.md -------------------------------------------------------------------------------- /extras/smart_pointers/03_drop_trait.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/extras/smart_pointers/03_drop_trait.md -------------------------------------------------------------------------------- /extras/smart_pointers/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/extras/smart_pointers/Cargo.toml -------------------------------------------------------------------------------- /extras/smart_pointers/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/extras/smart_pointers/src/lib.rs -------------------------------------------------------------------------------- /git_hooks/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/git_hooks/pre-commit -------------------------------------------------------------------------------- /intermediate/01_generics/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/intermediate/01_generics/Cargo.toml -------------------------------------------------------------------------------- /intermediate/01_generics/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/intermediate/01_generics/README.md -------------------------------------------------------------------------------- /intermediate/01_generics/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/intermediate/01_generics/src/lib.rs -------------------------------------------------------------------------------- /intermediate/02_lifetime/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/intermediate/02_lifetime/Cargo.toml -------------------------------------------------------------------------------- /intermediate/02_lifetime/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/intermediate/02_lifetime/README.md -------------------------------------------------------------------------------- /intermediate/02_lifetime/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bellshade/Rust/HEAD/intermediate/02_lifetime/src/lib.rs --------------------------------------------------------------------------------