holy 0.2.1

Holy is a proc-macro library that provides helper macros.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use holy::Getters;

#[derive(Getters)]
pub struct Simple {
	pub name: String,
	pub age: u32,
}

fn main() {
	let s = Simple {
		name: "test".into(),
		age: 5,
	};
	let _n: &String = s.name();
	let _a: &u32 = s.age();
}