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

pub trait PyMappingProtocol<'p>: PyClass {
    pub fn __len__(&'p self) -> Self::Result
    where
        Self: PyMappingLenProtocol<'p>
, { ... }
pub fn __getitem__(&'p self, key: Self::Key) -> Self::Result
    where
        Self: PyMappingGetItemProtocol<'p>
, { ... }
pub fn __setitem__(
        &'p mut self,
        key: Self::Key,
        value: Self::Value
    ) -> Self::Result
    where
        Self: PyMappingSetItemProtocol<'p>
, { ... }
pub fn __delitem__(&'p mut self, key: Self::Key) -> Self::Result
    where
        Self: PyMappingDelItemProtocol<'p>
, { ... }
pub fn __reversed__(&'p self) -> Self::Result
    where
        Self: PyMappingReversedProtocol<'p>
, { ... } }

Mapping interface

Provided methods

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

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

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

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

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

Loading content...

Implementors

Loading content...