tia 1.0.3

tia; trait, impl, accessors | automatic
Documentation
use tia::Tia; // 1. use

#[derive(Tia)] // 2. derive
#[tia(rg)] // 3. tia directives
struct MyStruct
{
 foo: i32,
 bar: String
}

fn main()
{
 let mys = MyStruct {
  foo: 123,
  bar: "Hello".into()
 };
 let foo = mys.get_foo(); // <-- 4. !! generated by tia automatically !!
 let bar = mys.get_bar(); // <-- 5. !! generated by tia automatically !!
 println!("foo={} bar={}", foo, bar);
}