An open API service indexing awesome lists of open source software.

https://github.com/lancelote/rust-in-action

Examples from "Rust in Action" book by Tim McNamara
https://github.com/lancelote/rust-in-action

rust

Last synced: about 2 months ago
JSON representation

Examples from "Rust in Action" book by Tim McNamara

Awesome Lists containing this project

README

        

# rust-in-action

- My experiments with examples from "[Rust in Action](https://www.manning.com/books/rust-in-action)" book by Tim McNamara
- [Original book code examples](https://github.com/rust-in-action/code)

## TOC

- [x] Chapter 1: Introducing Rust
- [Basic Hello World](ch01/src/bin/hello_world.rs)
- [Unicode Support](ch01/src/bin/multilanguage_hello.rs)
- [CSV Processing](ch01/src/bin/csv_processing.rs)
- [x] Chapter 2: Language Foundations
- [Defining and Calling Functions](ch02/src/bin/function_basics.rs)
- [Integer Base Notation](ch02/src/bin/integer_base.rs)
- [Check for Possible Type Conversion](ch02/src/bin/check_type.rs)
- [Explicit Floats Comparison](ch02/src/bin/float_compare.rs)
- [NaNs](ch02/src/bin/nan_usage.rs)
- [Complex Numbers](ch02/src/bin/complex_numbers.rs)
- [Simple Iteration](ch02/src/bin/iteration.rs)
- [Iteration with `iter()`](ch02/src/bin/iter_iteration.rs)
- [Iteration with Ownership](ch02/src/bin/own_iteration.rs)
- [While Loop](ch02/src/bin/while_loop.rs)
- [Match Example](ch02/src/bin/match_example.rs)
- [Mandelbrot Set Printing](ch02/src/bin/mandelbrot.rs)
- [Basic Lifetimes](ch02/src/bin/basic_lifetimes.rs)
- [Basic Generics](ch02/src/bin/basic_generics.rs)
- [grep-lite](ch02/src/bin/grep_lite.rs)
- [Array Basics](ch02/src/bin/array_basics.rs)
- [grep-lite with Vectors](ch02/src/bin/grep_lite_v2.rs)
- [grep-lite with Regexp](ch02/src/bin/grep_lite_v3.rs)
- [grep-line with CLI](ch02/src/bin/grep_lite_v4.rs)
- [Reading Files](ch02/src/bin/reading_files.rs)
- [Iterating over File Lines](ch02/src/bin/file_lines.rs)
- [grep-lite with Files](ch02/src/bin/grep_lite_v5.rs)
- [grep-lite with STDIN](ch02/src/bin/grep_lite_v6.rs)
- [x] Chapter 3: Compound Data Types
- [Basic Struct](ch03/src/bin/basic_struct.rs)
- [New Type Pattern](ch03/src/bin/new_type.rs)
- [File API](ch03/src/bin/file_api.rs)
- [`new()` Method](ch03/src/bin/new_method.rs)
- [File API with Methods](ch03/src/bin/file_api_v2.rs)
- [Global Variable to Track an Error](ch03/src/bin/global_var_err.rs)
- [Return Type](ch03/src/bin/return_type.rs)
- [Enums](ch03/src/bin/enums.rs)
- [Internal State with Enums](ch03/src/bin/internal_state.rs)
- [Basic Traits](ch03/src/bin/basic_traits.rs)
- [Display Implementation](ch03/src/bin/display_impl.rs)
- [Using `pub`](ch03/src/bin/pub_usage.rs)
- [Documentation](ch03/src/bin/docs.rs)
- [x] Chapter 4: Lifetimes, Ownership and Borrowing
- [Integer-based CubeSats](ch04/src/bin/int_cube_sats.rs)
- [Struct-based CubeSats](ch04/src/bin/struct_cube_sats.rs)
- [CubeSat Messages](ch04/src/bin/cube_sat_messages.rs)
- [Fewer Long-lived Values](ch04/src/bin/fewer_long_lived.rs)
- [Implementing Copy & Clone](ch04/src/bin/implement_copy.rs)
- [Using Copy & Clone](ch04/src/bin/using_copy.rs)
- [Basic `Rc` Usage](ch04/src/bin/rc_usage.rs)
- [Basic `RefCell` Usage](ch04/src/bin/refcell_usage.rs)
- [x] Chapter 5: Data in Depth
- [Bit Sequence](ch05/src/bin/bit_seq.rs)
- [Interpret Float as Int](ch05/src/bin/float_as_int.rs)
- [Integer Overflow](ch05/src/bin/integer_overflow.rs)
- [Endianness](ch05/src/bin/endianness.rs)
- [From Bit Pattern to Float](ch05/src/bin/from_bits.rs)
- [Fixed-point Number Format](ch05/src/bin/q_format.rs)
- [Random Probabilities Generator](ch05/src/bin/random_bytes.rs)
- [CPU Emulation](ch05/src/bin/cpu_emulation.rs)
- [CPU with Memory](ch05/src/bin/cpu_memory.rs)
- [CPU with Stack](ch05/src/bin/cpu_stack.rs)
- [ ] Chapter 6: Memory
- [Mimicking Pointers](ch06/src/bin/mimicking_pointers.rs)
- [Compare References & Boxes](ch06/src/bin/ref_and_box.rs)
- [Strings from External Source](ch06/src/bin/external_str.rs)
- [ ] Chapter 7: Files & Storage
- [ ] Chapter 8: Networking
- [ ] Chapter 9: Time and Time Keeping
- [ ] Chapter 10: Processes, Threads and Containers
- [ ] Chapter 11 Kernel
- [ ] Chapter 12: Signals, Interrupts and Exceptions