pub trait BinaryOp: Set {
// Required method
fn op(self, other: Self) -> Self;
// Provided methods
fn op_assign_r(&mut self, b: Self)
where Self: Clone { ... }
fn op_assign_l(&mut self, b: Self)
where Self: Clone { ... }
}
Expand description
二項演算をもつ
Required Methods§
Provided Methods§
Sourcefn op_assign_r(&mut self, b: Self)where
Self: Clone,
fn op_assign_r(&mut self, b: Self)where
Self: Clone,
二項演算$\circ$で(右側から)代入操作($a \leftarrow a \circ b$)をする。
Sourcefn op_assign_l(&mut self, b: Self)where
Self: Clone,
fn op_assign_l(&mut self, b: Self)where
Self: Clone,
二項演算$\circ$で(左側から)代入操作($a \leftarrow b \circ a$)をする。
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.