pub trait PyMappingProtocol<'p>: PyClass<Frozen = False> {
    fn __len__(&'p self) -> Self::Result
    where
        Self: PyMappingLenProtocol<'p>
, { ... } fn __getitem__(&'p self, key: Self::Key) -> Self::Result
    where
        Self: PyMappingGetItemProtocol<'p>
, { ... } fn __setitem__(
        &'p mut self,
        key: Self::Key,
        value: Self::Value
    ) -> Self::Result
    where
        Self: PyMappingSetItemProtocol<'p>
, { ... } fn __delitem__(&'p mut self, key: Self::Key) -> Self::Result
    where
        Self: PyMappingDelItemProtocol<'p>
, { ... } }
👎 Deprecated since 0.16.0:

prefer #[pymethods] to #[pyproto]

Available on crate feature pyproto only.
Expand description

Mapping interface

Provided Methods

👎 Deprecated since 0.16.0:

prefer #[pymethods] to #[pyproto]

👎 Deprecated since 0.16.0:

prefer #[pymethods] to #[pyproto]

👎 Deprecated since 0.16.0:

prefer #[pymethods] to #[pyproto]

👎 Deprecated since 0.16.0:

prefer #[pymethods] to #[pyproto]

Implementors