summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-08-27 21:07:33 +0200
committerHampusM <hampus@hampusmat.com>2024-08-27 21:07:33 +0200
commit895b25dcf214ece8b61d33dfa67bda0da5a5546d (patch)
tree86c8228d740480c9b3da3abf7f8b1e73c96c4d57 /src
parent686d0a2e6ec333a72943868a6b2f133d3d32144f (diff)
feat: make MultiVec implement Default
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index e9479d1..2884434 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -313,6 +313,16 @@ where
}
}
+impl<ItemT> Default for MultiVec<ItemT>
+where
+ ItemT: Item,
+{
+ fn default() -> Self
+ {
+ Self::new()
+ }
+}
+
impl<ItemT> Drop for MultiVec<ItemT>
where
ItemT: Item,