Skip to main content

render_function_with_options

Function render_function_with_options 

Source
pub fn render_function_with_options(
    target: &TargetSpec,
    module: &[Stmt],
    use_ndarray: bool,
) -> (String, bool)
Expand description

Render a single PyO3 #[pyfunction] for the given target.

Returns (rendered_source, had_fallback).