Skip to main content

hint_parts

Function hint_parts 

Source
pub fn hint_parts(
    name: &str,
    def: &FnDef,
    arg: Option<usize>,
) -> (String, String, String)
Expand description

def’s hint split around argument arg: (before, current, after), so the current parameter can be drawn bold. No arg (or one past a fixed parameter list) leaves current empty.