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

pub trait PyMappingProtocol<'p>: PyTypeInfo {
    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 __iter__(&'p self, py: Python<'p>) -> Self::Result
    where
        Self: PyMappingIterProtocol<'p>
, { ... }
fn __contains__(&'p self, value: Self::Value) -> Self::Result
    where
        Self: PyMappingContainsProtocol<'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>, 

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 __iter__(&'p self, py: Python<'p>) -> Self::Result where
    Self: PyMappingIterProtocol<'p>, 

fn __contains__(&'p self, value: Self::Value) -> Self::Result where
    Self: PyMappingContainsProtocol<'p>, 

fn __reversed__(&'p self) -> Self::Result where
    Self: PyMappingReversedProtocol<'p>, 

Loading content...

Implementors

Loading content...