mirror of
https://github.com/sam0x17/pub-fields.git
synced 2025-04-03 21:07:36 +03:00
254 B
254 B
A simple attribute that makes all fields public on a struct.
Usage:
#[pub_fields]
pub struct MyStruct {
a: usize,
b: usize,
c: usize,
}
=>
pub struct MyStruct {
pub a: usize,
pub b: usize,
pub c: usize,
}