pub trait PyCodecClassMethods<'py>: Sealed {
// Required methods
fn codec_id(&self) -> Result<String, PyErr>;
fn codec_from_config(
&self,
config: Borrowed<'_, 'py, PyDict>,
) -> Result<Bound<'py, PyCodec>, PyErr>;
fn as_type(&self) -> &Bound<'py, PyType>;
}
Expand description
Methods implemented for PyCodecClass
es.