# pyo3::class::mapping::PyMappingProtocol - Rust
Mapping interface
Keywords: rust, rustlang, rust-lang, PyMappingProtocol

# Trait pyo3::class::mapping::PyMappingProtocol [−] [src]

    pub trait PyMappingProtocol<'p>: PyClass {
        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>,
        { ... }
        fn __reversed__(&'p self) -> Self::Result
        where
            Self: PyMappingReversedProtocol<'p>,
        { ... }
    }

Mapping interface

## Provided methods

### `fn __len__(&'p self) -> Self::Result where
Self: PyMappingLenProtocol<'p>,` [src]

### `fn __getitem__(&'p self, key: Self::Key) -> Self::Result where
Self: PyMappingGetItemProtocol<'p>,` [src]

### `fn __setitem__(&'p mut self, key: Self::Key, value: Self::Value) -> Self::Result where
Self: PyMappingSetItemProtocol<'p>,` [src]

### `fn __delitem__(&'p mut self, key: Self::Key) -> Self::Result where
Self: PyMappingDelItemProtocol<'p>,` [src]

### `fn __reversed__(&'p self) -> Self::Result where
Self: PyMappingReversedProtocol<'p>,` [src]

Loading content...

## Implementors

Loading content...