[][src]Trait pyo3::class::descr::PyDescrProtocol

pub trait PyDescrProtocol<'p>: PyTypeInfo {
    fn __get__(
        &'p self,
        instance: &'p PyObjectRef,
        owner: Option<&'p PyType>
    ) -> Self::Result
    where
        Self: PyDescrGetProtocol<'p>
, { ... }
fn __set__(
        &'p self,
        instance: &'p PyObjectRef,
        value: &'p PyObjectRef
    ) -> Self::Result
    where
        Self: PyDescrSetProtocol<'p>
, { ... }
fn __delete__(&'p self, instance: &'p PyObjectRef) -> Self::Result
    where
        Self: PyDescrDeleteProtocol<'p>
, { ... }
fn __set_name__(&'p self, instance: &'p PyObjectRef) -> Self::Result
    where
        Self: PyDescrSetNameProtocol<'p>
, { ... } }

Descriptor interface

Provided methods

fn __get__(
    &'p self,
    instance: &'p PyObjectRef,
    owner: Option<&'p PyType>
) -> Self::Result where
    Self: PyDescrGetProtocol<'p>, 

fn __set__(
    &'p self,
    instance: &'p PyObjectRef,
    value: &'p PyObjectRef
) -> Self::Result where
    Self: PyDescrSetProtocol<'p>, 

fn __delete__(&'p self, instance: &'p PyObjectRef) -> Self::Result where
    Self: PyDescrDeleteProtocol<'p>, 

fn __set_name__(&'p self, instance: &'p PyObjectRef) -> Self::Result where
    Self: PyDescrSetNameProtocol<'p>, 

Loading content...

Implementors

Loading content...