Skip to main content

parse_rename_from

Function parse_rename_from 

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

Parses a rename line and extracts the source path.

Rename lines look like:

  • “rename from path/to/old/file.rs”

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

Requirements: 4.3