Merge pull request #437 from dtolnay/methods

Support methods/member functions on shared structs