If a type implements the Copy trait, then it will be copied when passed to a function. All numeric types in Rust implement Copy, but struct types do not implement Copy by default, so they are moved instead. This means that the struct can no longer be used elsewhere, unless it is moved...
/// [`PartialEq`]トレイトの実装によって連続して繰り返されている要素を取り除きます。 /// /// <!-- Removes consecutive repeated elements in the vector according to the /// [`PartialEq`] trait implementation. --> @@ -1973,7 +1984,7 @@ impl<T: PartialEq> Vec<T> { ...