[][src]Enum prolog_parser::ast::ParserError

pub enum ParserError {
    Arithmetic(ArithmeticError),
    BackQuotedString(usizeusize),
    BadPendingByte,
    CannotParseCyclicTerm,
    UnexpectedChar(charusizeusize),
    UnexpectedEOF,
    IO(IOError),
    ExpectedRel,
    ExpectedTopLevelTerm,
    InadmissibleFact,
    InadmissibleQueryTerm,
    IncompleteReduction(usizeusize),
    InconsistentEntry,
    InvalidDoubleQuotesDecl,
    InvalidHook,
    InvalidModuleDecl,
    InvalidModuleExport,
    InvalidRuleHead,
    InvalidUseModuleDecl,
    InvalidModuleResolution,
    InvalidSingleQuotedCharacter(char),
    MissingQuote(usizeusize),
    NonPrologChar(usizeusize),
    ParseBigInt(usizeusize),
    ParseFloat(usizeusize),
    Utf8Error(usizeusize),
}

Variants

Arithmetic(ArithmeticError)
BackQuotedString(usizeusize)
BadPendingByte
CannotParseCyclicTerm
UnexpectedChar(charusizeusize)
UnexpectedEOF
ExpectedRel
ExpectedTopLevelTerm
InadmissibleFact
InadmissibleQueryTerm
IncompleteReduction(usizeusize)
InconsistentEntry
InvalidDoubleQuotesDecl
InvalidHook
InvalidModuleDecl
InvalidModuleExport
InvalidRuleHead
InvalidUseModuleDecl
InvalidModuleResolution
InvalidSingleQuotedCharacter(char)
MissingQuote(usizeusize)
NonPrologChar(usizeusize)
ParseBigInt(usizeusize)
ParseFloat(usizeusize)
Utf8Error(usizeusize)

Implementations

impl ParserError[src]

pub fn line_and_col_num(&self) -> Option<(usize, usize)>[src]

pub fn as_str(&self) -> &'static str[src]

Trait Implementations

impl Debug for ParserError[src]

impl<'_> From<&'_ Error> for ParserError[src]

impl From<ArithmeticError> for ParserError[src]

impl From<Error> for ParserError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Az for T[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedAs for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> OverflowingAs for T[src]

impl<T> SaturatingAs for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WrappingAs for T[src]