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§
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)>
Object Safety§
This trait is not object safe.