pyo3::types::dict

Trait PyDictItem

Source
trait PyDictItem<'py> {
    type K: IntoPyObject<'py>;
    type V: IntoPyObject<'py>;

    // Required method
    fn unpack(self) -> (Self::K, Self::V);
}
Expand description

Represents a tuple which can be used as a PyDict item.

Required Associated Types§

Required Methods§

Source

fn unpack(self) -> (Self::K, Self::V)

Implementations on Foreign Types§

Source§

impl<'a, 'py, K, V> PyDictItem<'py> for &'a (K, V)
where &'a K: IntoPyObject<'py>, &'a V: IntoPyObject<'py>,

Source§

type K = &'a K

Source§

type V = &'a V

Source§

fn unpack(self) -> (Self::K, Self::V)

Source§

impl<'py, K, V> PyDictItem<'py> for (K, V)
where K: IntoPyObject<'py>, V: IntoPyObject<'py>,

Source§

type K = K

Source§

type V = V

Source§

fn unpack(self) -> (Self::K, Self::V)

Implementors§

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here