learn-rust.git
15 months agoC from Rust: Reference C programs
Martin Pitt [Fri, 27 Aug 2021 05:09:50 +0000 (07:09 +0200)]
C from Rust: Reference C programs

15 months agoAdd .gitignore
Martin Pitt [Fri, 27 Aug 2021 04:56:44 +0000 (06:56 +0200)]
Add .gitignore

15 months agoIterators
Martin Pitt [Thu, 26 Aug 2021 16:30:39 +0000 (18:30 +0200)]
Iterators

15 months agoConsistently use into_iter() with collect()
Martin Pitt [Thu, 26 Aug 2021 15:23:55 +0000 (17:23 +0200)]
Consistently use into_iter() with collect()

15 months agoReplace unsafe test code with global_counter
Martin Pitt [Wed, 25 Aug 2021 06:36:47 +0000 (08:36 +0200)]
Replace unsafe test code with global_counter

https://docs.rs/crate/global_counter

15 months agoClosures and Cacher object
Martin Pitt [Wed, 25 Aug 2021 06:25:30 +0000 (08:25 +0200)]
Closures and Cacher object

15 months agoAdd integration test
Martin Pitt [Tue, 24 Aug 2021 07:56:13 +0000 (09:56 +0200)]
Add integration test

15 months agoMove helper functions into src/lib.rs
Martin Pitt [Tue, 24 Aug 2021 07:51:38 +0000 (09:51 +0200)]
Move helper functions into src/lib.rs

This enables writing integration tests. Pure binary crates can't have
them:

https://doc.rust-lang.org/stable/book/ch11-03-test-organization.html#integration-tests-for-binary-crates

15 months agoGenerics and Traits
Martin Pitt [Tue, 24 Aug 2021 05:21:03 +0000 (07:21 +0200)]
Generics and Traits

15 months agoReturn style fix
Martin Pitt [Tue, 24 Aug 2021 04:53:24 +0000 (06:53 +0200)]
Return style fix

15 months agoFile reading with standard fs API
Martin Pitt [Mon, 23 Aug 2021 12:07:13 +0000 (14:07 +0200)]
File reading with standard fs API

15 months agoFile reading and error handling using ?
Martin Pitt [Mon, 23 Aug 2021 12:02:33 +0000 (14:02 +0200)]
File reading and error handling using ?

15 months agoFile reading and simple error handling
Martin Pitt [Mon, 23 Aug 2021 11:52:54 +0000 (13:52 +0200)]
File reading and simple error handling

15 months agoSplit into functions
Martin Pitt [Mon, 23 Aug 2021 11:18:15 +0000 (13:18 +0200)]
Split into functions

15 months agoHashMap
Martin Pitt [Mon, 23 Aug 2021 10:03:33 +0000 (12:03 +0200)]
HashMap

15 months agotest word_utils
Martin Pitt [Sun, 22 Aug 2021 14:17:51 +0000 (16:17 +0200)]
test word_utils

15 months agoVector iteration
Martin Pitt [Sun, 22 Aug 2021 14:03:34 +0000 (16:03 +0200)]
Vector iteration

15 months agoMove word_utils to separate file
Martin Pitt [Sun, 22 Aug 2021 13:31:47 +0000 (15:31 +0200)]
Move word_utils to separate file

15 months agoPut functions into module
Martin Pitt [Sun, 22 Aug 2021 13:24:27 +0000 (15:24 +0200)]
Put functions into module

15 months agoReferences, slices, Option
Martin Pitt [Sun, 22 Aug 2021 13:21:27 +0000 (15:21 +0200)]
References, slices, Option