Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
protocol: IntoIterator for BoundedVec
✗ CI failure Fintan Halpenny committed 5 months ago
commit c675683da924026ea486125d71ecbb858adb131a
parent 37d4ae4a9f2527a6f4922bf10a68b49ba67b0204
3 passed 4 failed (7 total) View logs
1 file changed +9 -0
modified crates/radicle-protocol/src/bounded.rs
@@ -180,6 +180,15 @@ impl<T: Clone, const N: usize> BoundedVec<T, N> {
    }
}

+
impl<T, const N: usize> IntoIterator for BoundedVec<T, N> {
+
    type Item = T;
+
    type IntoIter = std::vec::IntoIter<T>;
+

+
    fn into_iter(self) -> Self::IntoIter {
+
        self.v.into_iter()
+
    }
+
}
+

impl<T, const N: usize> ops::Deref for BoundedVec<T, N> {
    type Target = [T];