diff options
author | HampusM <hampus@hampusmat.com> | 2024-08-27 21:07:33 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-08-27 21:07:33 +0200 |
commit | 895b25dcf214ece8b61d33dfa67bda0da5a5546d (patch) | |
tree | 86c8228d740480c9b3da3abf7f8b1e73c96c4d57 /src | |
parent | 686d0a2e6ec333a72943868a6b2f133d3d32144f (diff) |
feat: make MultiVec implement Default
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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, |