pub trait CommonMethodsCore: Display + Debug + PyBytesGeneral + PyFromBytesGeneral + IntoPy<PyObject> + Clone {
    // Provided methods
    fn pybytes<'b>(&self, py: Python<'b>) -> &'b PyBytes { ... }
    fn pystr(&self) -> String { ... }
    fn pyrepr(&self) -> String { ... }
    fn py_from_bytes(raw: &[u8]) -> PyResult<Self> { ... }
    fn pyreduce(&self) -> PyResult<(PyObject, PyObject)> { ... }
}

Provided Methods§

source

fn pybytes<'b>(&self, py: Python<'b>) -> &'b PyBytes

source

fn pystr(&self) -> String

source

fn pyrepr(&self) -> String

source

fn py_from_bytes(raw: &[u8]) -> PyResult<Self>

source

fn pyreduce(&self) -> PyResult<(PyObject, PyObject)>

Object Safety§

This trait is not object safe.

Implementors§