pub type F32Grammar = NumGrammar<f32>;
Expand description

Type alias for a grammar on f32 literals.

Aliased Type§

struct F32Grammar(/* private fields */);

Trait Implementations§

source§

impl<T: Debug> Debug for NumGrammar<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: NumLiteral> ParseLiteral for NumGrammar<T>

§

type Lit = T

Type of the literal used in the grammar.
source§

fn parse_literal(input: InputSpan<'_>) -> NomResult<'_, Self::Lit>

Attempts to parse a literal. Read more