Skip to main content

parse_click_value

Function parse_click_value 

Source
pub fn parse_click_value(s: &str) -> Result<ClickValue, String>
Expand description

Parses a suffixed click graduation string. The unit suffix is mandatory — one of mil, moa, smoa, iphy (iphy is accepted as an alias for smoa, the identical unit) — and the magnitude must be a positive, finite number.