MCPcopy Create free account
hub / github.com/ProgrammingRust/mandelbrot / parse_pair

Function parse_pair

src/main.rs:37–47  ·  view source on GitHub ↗

Parse the string `s` as a coordinate pair, like `"400x600"` or `"1.0,0.5"`. Specifically, `s` should have the form , where is the character given by the `separator` argument, and and are both strings that can be parsed by `T::from_str`. If `s` has the proper form, return `Some<(x, y)>`. If it doesn't parse correctly, return `None`.

(s: &str, separator: char)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

parse_complexFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected