Crates.io | metastruct |
lib.rs | metastruct |
version | 0.1.1 |
source | src |
created_at | 2022-12-08 04:16:19.358636 |
updated_at | 2023-06-19 04:34:29.132451 |
description | Abstractions for iterating and mapping over struct fields |
homepage | |
repository | https://github.com/sigp/metastruct |
max_upload_size | |
id | 732339 |
size | 18,758 |
metastruct
Metastruct is Rust library for metaprogramming with struct fields.
Some of the things you can do with metastruct
include:
const
.This is achieved by a procedural macro, which generates macro_rules!
macros.
One way of understanding metastruct
is as a shortcut to writing your own derive macros. If
you have a trait that you'd like to implement on a one-off basis, metastruct can help you write
that implementation without a derive macro.
This library is currently under construction and should not be considered stable.
There's currently no documentation aside from a few scant code comments and examples/tests.
Apache 2.0