Module mpc::glue [] [src]

Contains the rust-side of glue code. The main purpose of the code is to avoid having to interface with a C union in Rust. The main offender is mpc_result_t

Structs

parse_result

Contains resulting data from parsing this struct would be a book example of where to use unions, unions in Rust, however...

Enums

res_t

Determines whether compilation was successful

Functions

glue_parse

The C function which handles parsing

parse

Convert parse_result to Result<*mut mpc_ast_t, *mut mpc_err_t>. It is more idiomatic