We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
From<ZendHashTable>
1 parent 75f99c6 commit 3917c41Copy full SHA for 3917c41
src/php/types/array.rs
@@ -323,6 +323,16 @@ where
323
}
324
325
326
+/// Implementation for converting a `ZendHashTable` into a `Vec` of given type.
327
+impl<'a, V> From<ZendHashTable> for Vec<V>
328
+where
329
+ V: From<Zval>,
330
+{
331
+ fn from(ht: ZendHashTable) -> Self {
332
+ ht.into_iter().map(|(_, _, v)| v.into()).collect()
333
+ }
334
+}
335
+
336
/// Implementation for converting a Rust Vec into a ZendHashTable.
337
impl<'a, V> From<Vec<V>> for ZendHashTable
338
where
0 commit comments