From: TangerineGameDev <81909104+Eclextic@users.noreply.github.com>
---
src/lib.rs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/lib.rs b/src/lib.rs
index 6d3a288..4ad47ae 100644
--- a/src/lib.rs+++ b/src/lib.rs
@@ -262,6 +262,11 @@ pub mod ord {
/// These strategies are only available if the `std` feature is enabled.
#[cfg(feature = "std")]
pub mod vec {
+ /// Overwrite left with right regardless of the value.+ pub fn overwrite<T>(left: &mut Vec<T>, right: Vec<T>) {+ *left = right+ }+ /// Overwrite left with right if left is empty.
pub fn overwrite_empty<T>(left: &mut Vec<T>, mut right: Vec<T>) {
if left.is_empty() {
--
2.42.1