 add(self, rhs: i32) -&gt; f64 {
//        // add an i32 to a Point and get an f64
        // i32をPointに加算しf64を返す
1.0
    }
}
}</span><pre class='rust rust-example-rendered'>
<span class='kw'>impl</span> <span class='ident'>Add</span><span class='op'>&lt;</span><span class='ident'>i32</span><span class='op'>&gt;</span> <span class='kw'>for</span> <span class='ident'>Point</span> {
    <span class='kw'>type</span> <span class='ident'>Output</span> <span class='op'>=</span> <span class='ident'