在Rust 中,很多运算符可以通过trait 来重载。也就是说,这些运算符可以根据它们的输入参数来完成不同的 ... impl ops::Add<Bar> for Foo {. type Output = FooBar;.
確定! 回上一頁