struct_cache_field 0.0.2

Proc macro for caching method to struct field
Documentation
mod module1 {
    #[struct_cache_field::impl_cached_method]
    impl Hoge {
        pub fn two_times_x(&self) -> u64 {
            2 * self.x
        }
    }

    #[struct_cache_field::add_cache_field]
    pub struct Hoge {
        pub x: u64,
    }
}

mod module2 {
    #[struct_cache_field::impl_cached_method]
    impl Hoge {
        pub fn three_times_y(&self) -> u64 {
            2 * self.y
        }
    }

    #[struct_cache_field::add_cache_field]
    pub struct Hoge {
        pub y: u64,
    }
}

fn main() {}