Enum autocxx_engine::ParseError[][src]

pub enum ParseError {
    FileOpen(Error),
    FileRead(Error),
    Syntax(Error),
    AutocxxCodegenError(EngineError),
    ConflictingModNames,
    ZeroModsForDynamicDiscovery,
    MultipleModsForDynamicDiscovery,
    DiscoveredRustItemsWhenNotInAutoDiscover,
}
Expand description

Errors which may occur when parsing a Rust source file to discover and interpret include_cxx macros.

Variants

FileOpen(Error)

Tuple Fields

0: Error

Unable to open the source file

FileRead(Error)

Tuple Fields

0: Error

The .rs file couldn’t be read.

Syntax(Error)

Tuple Fields

0: Error

The .rs file couldn’t be parsed.

AutocxxCodegenError(EngineError)

Tuple Fields

The include CPP macro could not be expanded into Rust bindings to C++, because of some problem during the conversion process. This could be anything from a C++ parsing error to some C++ feature that autocxx can’t yet handle and isn’t able to skip over. It could also cover errors in your syntax of the include_cpp macro or the directives inside.

ConflictingModNames

There are two or more include_cpp macros with the same mod name.

ZeroModsForDynamicDiscovery

MultipleModsForDynamicDiscovery

DiscoveredRustItemsWhenNotInAutoDiscover

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.