get_enclosing_fn_name_of_position_internal

Function get_enclosing_fn_name_of_position_internal 

Source
fn get_enclosing_fn_name_of_position_internal(
    file_path: &Path,
    position: Point,
) -> Result<Option<String>>
Expand description

Gets the name of the function enclosing the given [Point] in a Rust file.

ยงErrors

  • A filesystem operation (open/read/write/remove) fails.