pub trait PyDescrProtocol<'p>: PyClass {
fn __get__(
slf: Self::Receiver,
instance: Self::Inst,
owner: Option<Self::Owner>
) -> Self::Result
where
Self: PyDescrGetProtocol<'p>,
{ ... }
fn __set__(
slf: Self::Receiver,
instance: Self::Inst,
value: Self::Value
) -> Self::Result
where
Self: PyDescrSetProtocol<'p>,
{ ... }
}
👎 Deprecated since 0.16.0:
prefer #[pymethods]
to #[pyproto]
Expand description
Descriptor interface
Provided Methods
👎 Deprecated since 0.16.0:
prefer #[pymethods]
to #[pyproto]