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.
1 parent fec12a0 commit 2bafb54Copy full SHA for 2bafb54
glib/src/variant.rs
@@ -1624,6 +1624,32 @@ where
1624
}
1625
1626
1627
+impl<K, V> fmt::Debug for DictEntry<K, V>
1628
+where
1629
+ K: fmt::Debug,
1630
+ V: fmt::Debug,
1631
+{
1632
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1633
+ f.debug_struct("DictEntry")
1634
+ .field("key", &self.key)
1635
+ .field("value", &self.value)
1636
+ .finish()
1637
+ }
1638
+}
1639
+
1640
+impl<K, V> Clone for DictEntry<K, V>
1641
1642
+ K: Clone,
1643
+ V: Clone,
1644
1645
+ fn clone(&self) -> Self {
1646
+ Self {
1647
+ key: self.key.clone(),
1648
+ value: self.value.clone(),
1649
1650
1651
1652
1653
impl<K, V> FromVariant for DictEntry<K, V>
1654
where
1655
K: FromVariant,
0 commit comments