Trait arithmetic_parser::grammars::NumLiteral

source ·
pub trait NumLiteral: 'static + Clone + Debug {
    // Required method
    fn parse(input: InputSpan<'_>) -> NomResult<'_, Self>;
}
Expand description

Numeric literal used in NumGrammars.

Required Methods§

source

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

Tries to parse a literal.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl NumLiteral for f32

source§

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

source§

impl NumLiteral for f64

source§

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

source§

impl NumLiteral for i8

source§

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

source§

impl NumLiteral for i16

source§

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

source§

impl NumLiteral for i32

source§

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

source§

impl NumLiteral for i64

source§

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

source§

impl NumLiteral for i128

source§

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

source§

impl NumLiteral for u8

source§

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

source§

impl NumLiteral for u16

source§

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

source§

impl NumLiteral for u32

source§

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

source§

impl NumLiteral for u64

source§

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

source§

impl NumLiteral for u128

source§

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

source§

impl NumLiteral for BigInt

source§

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

source§

impl NumLiteral for BigUint

source§

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

source§

impl NumLiteral for Complex32

source§

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

source§

impl NumLiteral for Complex64

source§

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

Implementors§