Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You cannot import specific inherent methods. What you can do though is use the extension trait concept and import those traits.

If you import both traits you get an ambiguous function error and are asked to resolve which trait you want `<Goose as noises::Trait>::fudge(...)`.



Ah, I was not aware of extension traits. Thanks for pointing out.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: