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: ErrorUnable to open the source file
FileRead(Error)
Tuple Fields
0: ErrorThe .rs file couldn’t be read.
Syntax(Error)
Tuple Fields
0: ErrorThe .rs file couldn’t be parsed.
AutocxxCodegenError(EngineError)
Tuple Fields
0: EngineErrorThe 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.