dtolnay/cargo-expand

Is there a way to only expand an associated function on a type?

cyqsimon opened this issue · 1 comments

struct MyType {
    foo: usize,
}
impl MyType {
    fn print_foo(&self) {
        println!("{}", self.foo);
    }
}

Currently it seems like the only way to expand MyType::print_foo is to expand the entire module, or at least I haven't found a way to accomplish this. Is there a particular syntax for this that I'm missing?

If not, please see this as a feature request. Much thanks. =)