[−][src]Trait pyo3::class::basic::PyObjectProtocol
Basic Python class customization
Provided methods
pub fn __getattr__(&'p self, name: Self::Name) -> Self::Result where
Self: PyObjectGetAttrProtocol<'p>,
[src]
Self: PyObjectGetAttrProtocol<'p>,
pub fn __setattr__(
&'p mut self,
name: Self::Name,
value: Self::Value
) -> Self::Result where
Self: PyObjectSetAttrProtocol<'p>,
[src]
&'p mut self,
name: Self::Name,
value: Self::Value
) -> Self::Result where
Self: PyObjectSetAttrProtocol<'p>,
pub fn __delattr__(&'p mut self, name: Self::Name) -> Self::Result where
Self: PyObjectDelAttrProtocol<'p>,
[src]
Self: PyObjectDelAttrProtocol<'p>,
pub fn __str__(&'p self) -> Self::Result where
Self: PyObjectStrProtocol<'p>,
[src]
Self: PyObjectStrProtocol<'p>,
pub fn __repr__(&'p self) -> Self::Result where
Self: PyObjectReprProtocol<'p>,
[src]
Self: PyObjectReprProtocol<'p>,
pub fn __format__(&'p self, format_spec: Self::Format) -> Self::Result where
Self: PyObjectFormatProtocol<'p>,
[src]
Self: PyObjectFormatProtocol<'p>,
pub fn __hash__(&'p self) -> Self::Result where
Self: PyObjectHashProtocol<'p>,
[src]
Self: PyObjectHashProtocol<'p>,
pub fn __bytes__(&'p self) -> Self::Result where
Self: PyObjectBytesProtocol<'p>,
[src]
Self: PyObjectBytesProtocol<'p>,
pub fn __richcmp__(&'p self, other: Self::Other, op: CompareOp) -> Self::Result where
Self: PyObjectRichcmpProtocol<'p>,
[src]
Self: PyObjectRichcmpProtocol<'p>,
pub fn __bool__(&'p self) -> Self::Result where
Self: PyObjectBoolProtocol<'p>,
[src]
Self: PyObjectBoolProtocol<'p>,