Skip to main content

pyobject_to_margin_model_any

Function pyobject_to_margin_model_any 

Source
pub fn pyobject_to_margin_model_any(
    obj: &Bound<'_, PyAny>,
) -> PyResult<MarginModelAny>
Expand description

Extracts a built-in or Python margin model, retaining Python instance state.

ยงErrors

Returns an error if either margin calculation method is missing or not callable.