| Crates.io | safe-goto |
| lib.rs | safe-goto |
| version | 0.2.0 |
| created_at | 2022-12-02 18:44:54.189575+00 |
| updated_at | 2022-12-04 01:10:32.102976+00 |
| description | Emulating a safe goto-like instruction in Rust in the spirit of the "Safe goto with value" pre-RFC from IRLO |
| homepage | |
| repository | |
| max_upload_size | |
| id | 728548 |
| size | 49,772 |
Emulating a safe goto-like instruction in Rust in the spirit of the "Safe goto with value" pre-RFC from IRLO
The crate contains a single macro, safe_goto, which emulates goto with value using a loop wrapping a match on an enum.
The purpose of this crate is two-fold:
Non-goals:
The tests and examples contain some examples of the functionality. You can have a look at the expanded macro using tools like cargo-expand.