2187 Commits

Author SHA1 Message Date
Rock070
7b6ebb8654 Complete quiz2 2024-05-05 17:24:14 +08:00
Rock070
fdf1d54080 Complete use statement for SystemTime and UNIX_EPOCH 2024-01-18 01:08:05 +08:00
Rock070
e1ee32d60d Fix use statements in delicious_snacks module 2024-01-18 01:07:10 +08:00
Rock070
eb99e60ed8 Refactor factorial function using custom iterator 2024-01-11 23:22:52 +08:00
Rock070
77c6ac4868 Refactor factorial function using custom iterator 2024-01-11 01:32:25 +08:00
Rock070
5d6b812293 Refactor iterator functions to return division results 2024-01-10 23:45:35 +08:00
Rock070
9247e98c37 Fix capitalization in iterators2.rs 2024-01-10 00:40:15 +08:00
Rock070
2c4dc73771 Fix iterator implementation in iterators1.rs 2024-01-10 00:11:33 +08:00
Rock070
d6c5788761 Fix tests and add Rectangle struct 2024-01-08 23:51:45 +08:00
Rock070
4ad24e4e34 Fix assert statement in tests1.rs 2024-01-08 23:51:41 +08:00
Rock070
edd6b3eb49 Refactor struct Book to use lifetimes 2024-01-05 00:28:18 +08:00
Rock070
2432fde73d Refactor longest function and remove unnecessary code 2024-01-05 00:28:14 +08:00
Rock070
f996183355 Refactor longest function to use lifetimes 2024-01-05 00:28:10 +08:00
Rock070
b3fbab1791 Refactor some_func to accept a generic type implementing SomeTrait and OtherTrait 2024-01-03 00:37:32 +08:00
Rock070
1f926b4358 Refactor compare_license_types function 2024-01-03 00:28:39 +08:00
Rock070
4cf7b33094 Implement licensing_info method in Licensed trait 2024-01-03 00:19:11 +08:00
Rock070
46060cf08f Implement AppendBar trait for Vec<String> 2024-01-03 00:16:38 +08:00
Rock070
6d67fc122f Implement AppendBar trait for String type 2024-01-02 23:56:12 +08:00
Rock070
7e523787e1 Refactor Wrapper struct to use generics 2024-01-02 23:47:45 +08:00
Rock070
344f62c9d3 Fix type annotation for shopping_list 2024-01-02 23:47:42 +08:00
Rock070
3136192b9b Add error conversion function and handle parse errors in parse_pos_nonzero 2023-12-31 04:27:26 +08:00
Rock070
608ce4ffac Update return type of main() to use Box<dyn Error> 2023-12-31 04:05:36 +08:00
Rock070
5a9c46b51e Fix error handling in PositiveNonzeroInteger::new() 2023-12-31 04:02:19 +08:00
Rock070
dcd82188c3 Fix error handling in main function 2023-12-31 03:56:39 +08:00
Rock070
77fd6a3a1b Refactor total_cost function to handle parsing errors 2023-12-31 03:45:53 +08:00
Rock070
844dff4902 Refactor generate_nametag_text to return a Result instead of an Option 2023-12-31 03:39:29 +08:00
Rock070
43f6907aa1 Fix match statement in options3.rs 2023-12-31 03:25:21 +08:00
Rock070
9e0f7510d9 Refactor options2.rs: Use if let and while let statements 2023-12-31 03:22:56 +08:00
Rock070
439778465d Fix maybe_icecream function to handle time_of_day correctly 2023-12-31 03:17:45 +08:00
Rock070
b4cf7e4ef8 Fix visibility of make_sausage function 2023-12-31 02:35:15 +08:00
Rock070
9203b20a52 Refactor build_scores_table function to update goals scored and conceded 2023-12-30 18:25:07 +08:00
Rock070
b42cfb167d Add new fruits to the basket if not already present 2023-12-30 17:15:50 +08:00
Rock070
551793f249 Add more fruits to the fruit basket 2023-12-30 17:04:03 +08:00
Rock070
b2b6dad75e Refactor string functions 2023-12-30 16:52:54 +08:00
Rock070
13c442ec31 Fix string manipulation functions 2023-12-30 16:49:44 +08:00
Rock070
c0768cc4da Fix function argument in strings2.rs 2023-12-30 16:49:41 +08:00
Rock070
27d1c37b1c Fix current_favorite_color function to return a String 2023-12-30 12:13:20 +08:00
Rock070
23a2a21036 Fix if statement in if1.rs and implement message variants in enums3.rs 2023-12-30 12:12:00 +08:00
Rock070
cac63c180d Add variants to Message enum 2023-12-23 11:47:10 +08:00
Rock070
73d43b3f90 Add message types to enum 2023-12-23 11:38:47 +08:00
Rock070
b480c57095 Refactor is_international and get_fees methods in Package struct 2023-12-23 11:38:04 +08:00
Rock070
aea00abd1c Update order creation in structs2.rs 2023-12-23 11:31:19 +08:00
Rock070
853394ec14 Add color struct definitions and instantiate structs 2023-12-23 11:18:37 +08:00
Rock070
778452a921 Refactor function parameters in move_semantics6.rs 2023-12-17 16:37:19 +08:00
Rock070
1a956075a0 Refactor mutable borrowing in move_semantics5.rs 2023-12-17 16:25:54 +08:00
Rock070
d1a3ab5c54 Refactor fill_vec function to create and fill the Vec internally 2023-12-17 16:20:42 +08:00
Rock070
a898c058fc Refactor fill_vec function to accept a mutable reference 2023-12-17 16:17:24 +08:00
Rock070
1c51ad049f Refactor fill_vec function to take a mutable reference to vec 2023-12-17 16:00:15 +08:00
Rock070
4fd794e942 Refactor fill_vec to take a mutable reference to vec 2023-12-17 15:53:22 +08:00
Rock070
51775de8dc Fix multiplication logic in vec_loop and vec_map functions 2023-12-17 15:42:04 +08:00