diff --git a/soroban-sdk/src/vec.rs b/soroban-sdk/src/vec.rs index 70ed89b47..46f66bc9b 100644 --- a/soroban-sdk/src/vec.rs +++ b/soroban-sdk/src/vec.rs @@ -894,6 +894,18 @@ where } } +impl IntoIterator for &Vec +where + T: IntoVal + TryFromVal, +{ + type Item = T; + type IntoIter = UnwrappedIter, T, T::Error>; + + fn into_iter(self) -> Self::IntoIter { + self.clone().into_iter() + } +} + impl Vec where T: IntoVal + TryFromVal,