1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
use other::Foo;

/// Bar struct
pub struct Bar {}

/// Foo implementation for Bar
impl Foo for Bar {
    /// bar method for Bar
    fn bar() -> () {
        //
    }
}