Skip to main content

path_to_uri

Function path_to_uri 

Source
pub fn path_to_uri(path: &Path) -> Result<Uri>
Expand description

Convert a filesystem path to an LSP file:// URI.

ยงErrors

Returns an error if the path is not absolute or not valid UTF-8.