| Crates.io | tensr_proc_macros |
| lib.rs | tensr_proc_macros |
| version | 0.1.0 |
| created_at | 2024-08-29 22:14:48.699226+00 |
| updated_at | 2024-08-29 22:14:48.699226+00 |
| description | Procedural macros for the Tensr multidimensional array library |
| homepage | https://github.com/Pencilcaseman/tensr |
| repository | https://github.com/Pencilcaseman/tensr |
| max_upload_size | |
| id | 1357084 |
| size | 23,516 |
This crate contains procedural macros for the Tensr multidimensional array library.
Unfortunately, due to Rust's orphan rules, it is not possible to implement lazy evaluation concisely with traits. As a result, a fair amount of code duplication is required to get the required functionality.
Luckily, the duplicated code is pretty simple and can be auto-generated quite easily. Rust also seems to compile the code very quickly, so this is not a problem.