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::Setters;

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

fn main() {
	let mut s = Simple {
		name: "test".into(),
		age: 5,
	};
	s.set_name("new".into());
	s.set_age(10);
}