1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
pub struct Bar; /// blabla impl Bar { /// blabla pub fn foo() {} } /// Implementing a big trait. impl Foo for Bar { /// tadam fn bar() {} } pub trait Foo { fn bar(); }