Skip to main content

ensure_py_extractor_registered

Function ensure_py_extractor_registered 

Source
pub fn ensure_py_extractor_registered(
    type_name: &str,
    extractor: PyExtractor,
) -> Result<(), Error>
Expand description

Registers a PyExtractor for the given custom data type name if not already registered. If the type is already registered, returns Ok(()) without overwriting (idempotent). Use this where repeated registration can occur (e.g. module init).

ยงErrors

Does not return an error (idempotent insert into DashMap).