Skip to main content

NumParser

Type Alias NumParser 

Source
pub type NumParser<'a> = Arc<dyn Fn(&str) -> Option<f64> + 'a>;
Expand description

Parses what the user typed, returning None if it is not a number.

Aliased Typeยง

pub struct NumParser<'a> { /* private fields */ }