mikkurogue
de353bcb3b
Update: 108 Labeled switch example to contain default case for exhaustion
...
Update example text to give clarity on default/exhaustive case.
Reasoning:
The input for the example will not compile if user would want to test this for the logic of a labeled switch. Due the input not being an exhaustive input but rather "any u8 integer" (for the lack of better terminology) we need to use the else branch to indicate that the default case is handled, in this case by just emulating the '4' branch, but this could return an error.InvalidCaseProvided for example.
Signed-off-by: mikkurogue <michael.lindemans@outlook.com>
2025-01-04 11:56:25 +00:00
..
2023-05-06 15:38:13 -06:00
2021-08-19 08:59:18 -07:00
2022-06-04 17:21:34 -06:00
2021-03-12 18:59:46 -05:00
2022-03-19 19:46:29 -04:00
2022-02-22 02:21:22 +01:00
2021-03-12 18:59:46 -05:00
2021-06-14 11:26:04 -04:00
2021-08-17 00:01:55 -07:00
2023-06-22 09:41:41 +00:00
2021-03-12 18:59:46 -05:00
2022-02-11 10:40:22 +00:00
2021-03-12 18:59:46 -05:00
2021-05-09 13:15:53 -04:00
2023-04-30 16:23:35 -04:00
2023-06-26 23:43:39 +02:00
2023-06-22 09:41:41 +00:00
2021-08-28 10:25:03 -04:00
2021-04-26 20:45:19 -04:00
2023-02-16 00:39:56 +00:00
2022-01-01 02:20:26 +09:00
2021-04-04 16:29:28 -04:00
2023-06-22 09:41:41 +00:00
2023-06-22 09:41:41 +00:00
2023-11-21 15:01:22 +01:00
2023-02-19 17:52:16 +01:00
2021-03-12 18:59:46 -05:00
2021-05-09 13:15:53 -04:00
2023-11-21 15:01:22 +01:00
2021-03-12 18:59:46 -05:00
2023-06-22 09:41:41 +00:00
2021-03-12 18:59:46 -05:00
2022-01-01 02:20:26 +09:00
2021-11-10 11:30:37 -05:00
2021-03-12 18:59:46 -05:00
2023-06-22 12:11:24 +00:00
2023-08-02 23:29:02 +02:00
2023-08-02 23:29:02 +02:00
2023-11-21 15:01:22 +01:00
2023-04-05 16:11:56 +02:00
2021-03-12 18:59:46 -05:00
2023-01-12 19:25:06 +01:00
2022-07-31 15:58:24 -04:00
2021-03-12 18:59:46 -05:00
2023-06-22 09:41:41 +00:00
2024-11-08 22:48:37 +01:00
2024-05-20 21:32:32 +02:00
2023-11-21 15:01:22 +01:00
2023-11-21 15:01:22 +01:00
2022-07-31 11:04:16 -04:00
2024-03-14 23:37:14 +01:00
2021-08-30 17:55:32 -04:00
2021-11-05 17:47:12 +01:00
2023-10-18 19:28:34 +00:00
2023-11-21 15:01:22 +01:00
2023-11-21 15:01:22 +01:00
2023-11-21 15:01:22 +01:00
2024-10-26 20:43:47 +00:00
2024-03-08 01:07:57 +01:00
2023-11-06 19:50:47 +01:00
2021-12-25 15:21:33 -07:00
2022-04-22 17:50:10 -07:00
2023-02-21 21:43:40 +01:00
2023-11-21 19:09:47 +02:00
2024-11-02 17:03:46 +01:00
2023-01-29 17:52:11 +01:00
2023-11-21 15:01:22 +01:00
2023-06-11 23:41:42 +02:00
2023-06-26 23:43:39 +02:00
2023-11-21 15:01:22 +01:00
2024-09-02 19:33:59 +02:00
2023-11-21 15:01:22 +01:00
2021-11-05 17:46:56 +01:00
2023-09-20 22:30:57 +00:00
2023-11-21 15:01:22 +01:00
2024-09-02 19:33:59 +02:00
2021-11-05 17:47:12 +01:00
2023-06-29 21:32:44 +02:00
2022-05-18 21:39:36 +02:00
2023-11-21 15:01:22 +01:00
2021-09-04 19:00:03 +03:00
2024-09-07 19:21:57 +02:00
2023-04-18 18:16:19 +02:00
2021-11-05 17:46:56 +01:00
2021-11-05 17:46:56 +01:00
2021-05-24 15:57:59 -04:00
2021-05-12 21:36:57 -04:00
2021-06-30 19:59:25 -04:00
2021-11-05 17:47:12 +01:00
2021-11-05 17:46:56 +01:00
2021-11-07 20:51:33 -05:00
2023-11-21 15:01:22 +01:00
2024-01-13 14:27:58 +00:00
2024-05-04 18:51:00 +02:00
2024-08-11 16:29:14 +02:00
2024-05-06 09:13:56 +02:00
2024-05-06 09:13:56 +02:00
2024-05-06 09:13:56 +02:00
2024-11-07 21:45:47 +01:00
2023-04-30 21:23:54 -04:00
2023-08-17 19:43:13 +02:00
2023-05-15 00:06:15 +02:00
2024-08-04 14:19:05 +02:00
2024-05-06 09:13:56 +02:00
2024-11-07 22:05:00 +01:00
2024-11-08 13:29:44 +01:00
2024-06-12 17:29:11 +10:00
2025-01-04 11:56:25 +00:00
2024-11-07 15:01:59 +01:00
2023-01-22 13:12:53 +01:00