Skip to main content

parse_line

Function parse_line 

Source
pub fn parse_line(text: &str) -> Result<Line, PointError>
Expand description

Parse one line: X,Y, X,Y,label, blank, or # comment.

Coordinates are whole physical pixels and may be negative — a monitor left of the primary has negative global coordinates. A label may itself contain commas; everything after the second comma is the label, so 100,200,row 3, column 4 labels the point "row 3, column 4".