Enum py_literal::ParseError[]

pub enum ParseError {
    Syntax(String),
    IllegalEscapeSequence(String),
    ParseFloat(ParseFloatError),
    NumericCast(StringString),
}

Error parsing a Python literal.

Variants

A syntax error.

An illegal escape sequence in a string or bytes literal.

An error parsing a float. This might happen if the mantissa or exponent in the float literal has too many digits.

An error in a numeric cast. For example, this might occur while adding an integer and float if the integer is too large to fit in a float.

Trait Implementations

impl Debug for ParseError
[src]

Formats the value using the given formatter. Read more

impl Display for ParseError

Formats the value using the given formatter. Read more

impl Error for ParseError

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl From<ParseFloatError> for ParseError

Performs the conversion.

Auto Trait Implementations

impl Send for ParseError

impl Sync for ParseError