If I have a data structure like this:
struct Point { x: i32, y: i32, } impl Point { fn setX(&mut self, x: i32) -> &mut Point { s
Rust does not really support this kind of reflection at runtime, no.
In theory, you might be able to write a syntax extension that would let you generate some code that would do something like this, maybe...