Skip to main content

extract_binary_operands

Function extract_binary_operands 

Source
pub fn extract_binary_operands<L, R>(
    ob: &Bound<'_, PyAny>,
    left_attr: &str,
    right_attr: &str,
    context: &str,
) -> PyResult<(L, R)>
where L: for<'any, 'py> FromPyObject<'any, 'py>, R: for<'any, 'py> FromPyObject<'any, 'py>,
Expand description

Generic function for extracting operands from binary operations.