I have a ImplItemMethod in syn - Rust. How do I get the struct that it implements for?
For example:
pub struct StructWithMethod{
something: String
}
impl StructWithMethod {
pub fn do_something(&self, _u: u32) {
todo!()
}
}
I was able to find do_something
but I don't see a way to get the struct StructWithMethod
from its fields