Skip to main content

parse_rename_to

Function parse_rename_to 

Source
pub fn parse_rename_to(line: &str) -> Option<String>
Expand description

Parses a rename line and extracts the destination path.

Rename lines look like:

  • “rename to path/to/new/file.rs”

Returns the path after “rename to “ if the line matches, None otherwise.

Requirements: 4.3