rustdoc::json::conversions

Function from_function

Source
pub(crate) fn from_function(
    function: Box<Function>,
    has_body: bool,
    header: FnHeader,
    renderer: &JsonRenderer<'_>,
) -> Function