├── .gitignore ├── LICENSE ├── README.md ├── chapter02 ├── Cargo.toml └── src │ ├── expressions.rs │ ├── main.rs │ ├── module_b.rs │ └── structs_and_behavior.rs ├── chapter03 ├── Cargo.toml ├── figures │ ├── need_to_dereference.png │ ├── stack.png │ └── uncertain_ownership.png └── src │ └── main.rs ├── chapter04 ├── Cargo.toml ├── figures │ ├── float_literal.png │ └── irrefutable.png └── src │ └── main.rs ├── chapter05 ├── Cargo.toml ├── figures │ ├── any_needs_concrete_type.png │ ├── any_needs_static.png │ ├── array_needs_type.png │ ├── changed_enum.png │ └── trait_output.png └── src │ ├── any.rs │ ├── enums.rs │ ├── main.rs │ └── traitobjs.rs ├── chapter06 ├── Cargo.toml ├── figures │ ├── consumed_cell.png │ ├── rcs_in_action.png │ ├── recursive_structure.png │ └── vector_type_mismatch.png └── src │ ├── boxes.rs │ ├── cell_and_refcell.rs │ ├── main.rs │ ├── rc.rs │ ├── strings.rs │ ├── threaded.rs │ └── vectors.rs ├── chapter07 ├── Cargo.toml ├── figures │ ├── incompatible.png │ ├── incomplete_type.png │ ├── mutable_closure.png │ ├── not_ordered.png │ └── not_satisfied.png └── src │ └── main.rs └── chapter08 ├── Cargo.toml └── src └── main.rs /.gitignore: -------------------------------------------------------------------------------- 1 | Cargo.lock 2 | target 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/README.md -------------------------------------------------------------------------------- /chapter02/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter02/Cargo.toml -------------------------------------------------------------------------------- /chapter02/src/expressions.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter02/src/expressions.rs -------------------------------------------------------------------------------- /chapter02/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter02/src/main.rs -------------------------------------------------------------------------------- /chapter02/src/module_b.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter02/src/module_b.rs -------------------------------------------------------------------------------- /chapter02/src/structs_and_behavior.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter02/src/structs_and_behavior.rs -------------------------------------------------------------------------------- /chapter03/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter03/Cargo.toml -------------------------------------------------------------------------------- /chapter03/figures/need_to_dereference.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter03/figures/need_to_dereference.png -------------------------------------------------------------------------------- /chapter03/figures/stack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter03/figures/stack.png -------------------------------------------------------------------------------- /chapter03/figures/uncertain_ownership.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter03/figures/uncertain_ownership.png -------------------------------------------------------------------------------- /chapter03/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter03/src/main.rs -------------------------------------------------------------------------------- /chapter04/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter04/Cargo.toml -------------------------------------------------------------------------------- /chapter04/figures/float_literal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter04/figures/float_literal.png -------------------------------------------------------------------------------- /chapter04/figures/irrefutable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter04/figures/irrefutable.png -------------------------------------------------------------------------------- /chapter04/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter04/src/main.rs -------------------------------------------------------------------------------- /chapter05/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter05/Cargo.toml -------------------------------------------------------------------------------- /chapter05/figures/any_needs_concrete_type.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter05/figures/any_needs_concrete_type.png -------------------------------------------------------------------------------- /chapter05/figures/any_needs_static.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter05/figures/any_needs_static.png -------------------------------------------------------------------------------- /chapter05/figures/array_needs_type.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter05/figures/array_needs_type.png -------------------------------------------------------------------------------- /chapter05/figures/changed_enum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter05/figures/changed_enum.png -------------------------------------------------------------------------------- /chapter05/figures/trait_output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter05/figures/trait_output.png -------------------------------------------------------------------------------- /chapter05/src/any.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter05/src/any.rs -------------------------------------------------------------------------------- /chapter05/src/enums.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter05/src/enums.rs -------------------------------------------------------------------------------- /chapter05/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter05/src/main.rs -------------------------------------------------------------------------------- /chapter05/src/traitobjs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter05/src/traitobjs.rs -------------------------------------------------------------------------------- /chapter06/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter06/Cargo.toml -------------------------------------------------------------------------------- /chapter06/figures/consumed_cell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter06/figures/consumed_cell.png -------------------------------------------------------------------------------- /chapter06/figures/rcs_in_action.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter06/figures/rcs_in_action.png -------------------------------------------------------------------------------- /chapter06/figures/recursive_structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter06/figures/recursive_structure.png -------------------------------------------------------------------------------- /chapter06/figures/vector_type_mismatch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter06/figures/vector_type_mismatch.png -------------------------------------------------------------------------------- /chapter06/src/boxes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter06/src/boxes.rs -------------------------------------------------------------------------------- /chapter06/src/cell_and_refcell.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter06/src/cell_and_refcell.rs -------------------------------------------------------------------------------- /chapter06/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter06/src/main.rs -------------------------------------------------------------------------------- /chapter06/src/rc.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter06/src/rc.rs -------------------------------------------------------------------------------- /chapter06/src/strings.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter06/src/strings.rs -------------------------------------------------------------------------------- /chapter06/src/threaded.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter06/src/threaded.rs -------------------------------------------------------------------------------- /chapter06/src/vectors.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter06/src/vectors.rs -------------------------------------------------------------------------------- /chapter07/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter07/Cargo.toml -------------------------------------------------------------------------------- /chapter07/figures/incompatible.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter07/figures/incompatible.png -------------------------------------------------------------------------------- /chapter07/figures/incomplete_type.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter07/figures/incomplete_type.png -------------------------------------------------------------------------------- /chapter07/figures/mutable_closure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter07/figures/mutable_closure.png -------------------------------------------------------------------------------- /chapter07/figures/not_ordered.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter07/figures/not_ordered.png -------------------------------------------------------------------------------- /chapter07/figures/not_satisfied.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter07/figures/not_satisfied.png -------------------------------------------------------------------------------- /chapter07/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter07/src/main.rs -------------------------------------------------------------------------------- /chapter08/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter08/Cargo.toml -------------------------------------------------------------------------------- /chapter08/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Rust-Quick-Start-Guide/HEAD/chapter08/src/main.rs --------------------------------------------------------------------------------