pyo3::impl_::pyclass

Function build_pyclass_doc

Source
pub fn build_pyclass_doc(
    class_name: &'static str,
    doc: &'static CStr,
    text_signature: Option<&'static str>,
) -> PyResult<Cow<'static, CStr>>
Expand description

Runtime helper to build a class docstring from the doc and text_signature.

This is done at runtime because the class text signature is collected via dtolnay specialization in to the #[pyclass] macro from the #[pymethods] macro.

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here